DEBSOURCES
Skip Quicknav
sources / node-rollup / 2.38.4-1 / test / function / samples / deoptimize-object-expressions-2 / main.js
1234567891011
const foo = {}; function doIt(x) { if (foo[x]) { return true; } foo[x] = true; } doIt('x'); assert.ok(doIt('x'), 'foo was not reassigned');