1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/ion/bug728188.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,9 @@ 1.4 +// |jit-test| error:TypeError 1.5 + 1.6 +delete String.prototype.indexOf; 1.7 + 1.8 +function enterFunc (funcName) { 1.9 + funcName.indexOf(); 1.10 +} 1.11 +enterFunc(new Array("foo")); 1.12 +enterFunc(new String("Foo"));