Note: When testing in Chrome, disable the cache when DevTools is open by checking the box under Settings > Preferences > Network. Otherwise, Chrome will favor cached images over better-fitting ones.
https://developer.mozilla.org/en-US/docs/Learn/HTM...
// wtf.js
function wtf() {
var obj = {};
obj.prop = obj = {};
return obj;
}
var o = wtf();
node --print-bytecode wtf.js > wtf.bytecode
[generated bytecode for function: wtf]
Parameter count 1
Frame size 16
74 E> 0x24c114e5f52a @ 0 : a0 StackCheck
92 S> 0x24c114e5f52b @ 1 : 7a CreateEmptyObjectLiteral
0x24c114e5f52c @ 2 : 26 fb Star r0
99 S> 0x24c114e5f52e @ 4 : 7a CreateEmptyObjectLiteral
0x24c114e5f52f @ 5 : 27 fb fa Mov r0, r1
0x24c114e5f532 @ 8 : 26 fb Star r0
108 E> 0x24c114e5f534 @ 10 : 2c fa 00 00 StaNamedProperty r1, [0], [0]
123 S> 0x24c114e5f538 @ 14 : 25 fb Ldar r0
134 S> 0x24c114e5f53a @ 16 : a4 Return
Constant pool (size = 1)
Handler Table (size = 0)
for (let i=0; i<db_clean_steps.length; i++) {
clean_db(db_clean_steps[i]);
}
try {
localStorage.db = JSON.stringify(db);
} catch(e) {
console.log("Can't save DB");
}