]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/has-custom-properties.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / has-custom-properties.js
CommitLineData
ed1e77d3
A
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})();