diff options
Diffstat (limited to 'js/src/jit-test/tests/self-test/delazification-mode-03.js')
-rw-r--r-- | js/src/jit-test/tests/self-test/delazification-mode-03.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/self-test/delazification-mode-03.js b/js/src/jit-test/tests/self-test/delazification-mode-03.js new file mode 100644 index 0000000000..53f158765e --- /dev/null +++ b/js/src/jit-test/tests/self-test/delazification-mode-03.js @@ -0,0 +1,17 @@ +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-03.js", + lineNumber: 1, + eagerDelazificationStrategy: "ParseEverythingEagerly", + newContext: true, +}; +evaluate(source, options); |