summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/xdr/tagged-template-literals-2.js
blob: 901d20017c369288062520ff7ae382e7c6df65be (plain)
1
2
3
4
var code = cacheEntry("(x => JSON.stringify(x))`bar`;");
var g = newGlobal({ cloneSingletons: true });
assertEq("[\"bar\"]", evaluate(code, { global: g, saveIncrementalBytecode: true }));
assertEq("[\"bar\"]", evaluate(code, { global: g, saveIncrementalBytecode: true }));