summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug728188.js
blob: 5289e0dc2b20069ca540eab7314b4b17c76205cc (plain)
1
2
3
4
5
6
7
8
9
// |jit-test| error:TypeError

delete String.prototype.indexOf;

function enterFunc (funcName) {
    funcName.indexOf();
}
enterFunc(new Array("foo"));
enterFunc(new String("Foo"));