summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/self-test/delazification-mode-00.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/self-test/delazification-mode-00.js')
-rw-r--r--js/src/jit-test/tests/self-test/delazification-mode-00.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/self-test/delazification-mode-00.js b/js/src/jit-test/tests/self-test/delazification-mode-00.js
new file mode 100644
index 0000000000..036065c688
--- /dev/null
+++ b/js/src/jit-test/tests/self-test/delazification-mode-00.js
@@ -0,0 +1,19 @@
+//|jit-test| skip-if: isLcovEnabled()
+
+let source = `
+ function foo() {
+ return "foo";
+ }
+
+ // Wait is skipped as the source is not registered in the stencil cache.
+ waitForStencilCache(foo);
+ assertEq(isInStencilCache(foo), false);
+`;
+
+const options = {
+ fileName: "inner-00.js",
+ lineNumber: 1,
+ eagerDelazificationStrategy: "OnDemandOnly",
+ newContext: true,
+};
+evaluate(source, options);