Debian Codegraph @

js/src/jit-test/tests/xdr/share-bytecode.js

raw
1
2 let entry = cacheEntry(`
3 function f() { }
4 f() // Delazify
5 f // Return function object
6 `);
7
8 let f1 = evaluate(entry, {saveBytecodeWithDelazifications: true});
9 let f2 = evaluate(entry, {loadBytecode: true});
10
11 // Reading from XDR should still deduplicate to same bytecode
12 assertEq(hasSameBytecodeData(f1, f2), true)