js/src/jit-test/tests/ion/bug792220.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/ion/bug792220.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,12 @@
     1.4 +var p = Proxy.create({
     1.5 +  has : function(id) {}
     1.6 +});
     1.7 +Object.prototype.__proto__ = p;
     1.8 +function f() {
     1.9 +  if (/a/.exec("a"))
    1.10 +    return 1;
    1.11 +  return 0;
    1.12 +}
    1.13 +delete RegExp.prototype.test;
    1.14 +f();
    1.15 +

mercurial