diff options
Diffstat (limited to 'js/src/jit-test/tests/xdr/tagged-template-literals-2.js')
-rw-r--r-- | js/src/jit-test/tests/xdr/tagged-template-literals-2.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/xdr/tagged-template-literals-2.js b/js/src/jit-test/tests/xdr/tagged-template-literals-2.js new file mode 100644 index 000000000..10326eece --- /dev/null +++ b/js/src/jit-test/tests/xdr/tagged-template-literals-2.js @@ -0,0 +1,4 @@ +var code = cacheEntry("(x => x.toSource())`bar`;"); +var g = newGlobal({ cloneSingletons: true }); +assertEq("[\"bar\"]", evaluate(code, { global: g, saveBytecode: true })); +assertEq("[\"bar\"]", evaluate(code, { global: g, loadBytecode: true })); |