js/src/jit-test/tests/auto-regress/bug679799.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/auto-regress/bug679799.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +// Binary: cache/js-dbg-64-2d95fc517e57-linux
     1.5 +// Flags: -m -n -a
     1.6 +//
     1.7 +
     1.8 +function test()
     1.9 +{
    1.10 +  var x = { "0": 3, "-0": 7 };
    1.11 +  try {
    1.12 +    delete x["-0"];
    1.13 +    if ("-0" in x)
    1.14 +      throw "0 not in x after insertion of 0 property";
    1.15 +    this ["-0"] = 7;
    1.16 +  } catch(ex) {}
    1.17 +}
    1.18 +test();
    1.19 +test();

mercurial