duplicate_key: { options = { objects: true, side_effects: true, } input: { var o = { a: 1, b: 2, a: 3, }; for (var k in o) console.log(k, o[k]); } expect: { var o = { a: 3, b: 2, }; for (var k in o) console.log(k, o[k]); } expect_stdout: [ "a 3", "b 2", ] } duplicate_key_strict: { options = { objects: true, side_effects: true, } input: { "use strict"; var o = { a: 1, b: 2, a: 3, }; for (var k in o) console.log(k, o[k]); } expect: { "use strict"; var o = { a: 1, b: 2, a: 3, }; for (var k in o) console.log(k, o[k]); } expect_stdout: true } duplicate_key_side_effect: { options = { objects: true, side_effects: true, } input: { var o = { a: 1, b: o = 2, a: 3, }; for (var k in o) console.log(k, o[k]); }
aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-06-14 10:40:57 +0200
committerWojtek Kosior <koszko@koszko.org>2022-06-14 10:40:57 +0200
commit0009