From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- js/src/jit-test/tests/basic/bug1219128-7.js | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 js/src/jit-test/tests/basic/bug1219128-7.js (limited to 'js/src/jit-test/tests/basic/bug1219128-7.js') diff --git a/js/src/jit-test/tests/basic/bug1219128-7.js b/js/src/jit-test/tests/basic/bug1219128-7.js new file mode 100644 index 0000000000..87ec092f87 --- /dev/null +++ b/js/src/jit-test/tests/basic/bug1219128-7.js @@ -0,0 +1,34 @@ +// |jit-test| slow; skip-if: !('oomTest' in this) + +function main() { + const v1 = this.newGlobal(); + function v2(v3,v4) { + oomTest(() => { + const v13 = this.parseModule("apply"); + const v14 = {}; + const v15 = v14.size; + const v17 = Uint16Array !== v15; + const v18 = v17 && Uint16Array; + const v20 = this.objectGlobal(v18); + const v21 = v20.newGlobal(); + const v24 = this.resumeProfilers(); + const v25 = v24 && v21; + const v26 = v25.evalInWorker("9007199254740991"); + function v27(v28,v29) { + } + const v31 = new Promise(v27); + const v33 = this.getModuleEnvironmentNames(v13); + }); + } + const v36 = new Promise(v2); + const v37 = v1.Debugger; + const v38 = v37(); + const v39 = v38.findAllGlobals(); + const v40 = v39.pop(); + const v41 = v40.getOwnPropertyDescriptor(v37); + gc(); +} +try { + main(); +} catch(exn) { +} -- cgit v1.2.3