summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1219128-7.js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--js/src/jit-test/tests/basic/bug1219128-7.js34
1 files changed, 34 insertions, 0 deletions
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) {
+}