Invalid flags in a RegExp literal should be an early SyntaxError
[WebKit-https.git] / JSTests / stress / array-constructor-no-result.js
1 var o = {};
2 o.__defineSetter__("foo", Array);
3
4 function foo()
5 {
6     o.foo = 42;
7 }
8
9 noInline(foo);
10
11 for (var i = 0; i < 10000; ++i)
12     foo();
13