DEBSOURCES
Skip Quicknav
sources / node-rollup / 2.38.4-1 / test / function / samples / reassign-array-literal-elements / main.js
12345678
var foo = {x: true}; var bar = {x: true}; var baz = [foo, bar]; baz[0].x = false; baz[1].x = false; if (foo.x) assert.fail('foo was not reassigned');