Invalid flags in a RegExp literal should be an early SyntaxError
[WebKit-https.git] / JSTests / stress / has-custom-properties.js
1 (function() {
2     for (var i = 0; i < 10000; ++i) {
3         var o = {};
4         
5         if (hasCustomProperties(o))
6             throw "Error: object shouldn't have custom properties yet.";
7         
8         o.f = 42;
9         
10         if (!hasCustomProperties(o))
11             throw "Error: object should have custom properties already.";
12     }
13 })();