js/src/jit-test/tests/jaeger/bug656914.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/jaeger/bug656914.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +try {
     1.5 +  new MyObject;
     1.6 +} catch (e) {}
     1.7 +
     1.8 +function MyObject() {
     1.9 +  return;
    1.10 +  return this;
    1.11 +}
    1.12 +
    1.13 +function Foo(x) {
    1.14 +  if (x)
    1.15 +    this.f = x;
    1.16 +}
    1.17 +var q = new Foo(false);
    1.18 +for (a in q) { assertEq(true, false); }
    1.19 +
    1.20 +function Bar(x, y) {
    1.21 +  if (!x)
    1.22 +    return;
    1.23 +  this.f = y;
    1.24 +}
    1.25 +var q2 = new Bar(false, true);
    1.26 +for (b in q2) { assertEq(true, false); }

mercurial