summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug679799.js
blob: fa899458f92b74f99e445f9836996a4c64c725db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Binary: cache/js-dbg-64-2d95fc517e57-linux
// Flags: -m -n -a
//

function test()
{
  var x = { "0": 3, "-0": 7 };
  try {
    delete x["-0"];
    if ("-0" in x)
      throw "0 not in x after insertion of 0 property";
    this ["-0"] = 7;
  } catch(ex) {}
}
test();
test();