X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/2d39b0e377c0896910ee49ae70082ba665faf986..ed1e77d3adeb83d26fd1dfb16dd84cabdcefd250:/tests/stress/has-custom-properties.js diff --git a/tests/stress/has-custom-properties.js b/tests/stress/has-custom-properties.js new file mode 100644 index 0000000..55775ba --- /dev/null +++ b/tests/stress/has-custom-properties.js @@ -0,0 +1,13 @@ +(function() { + for (var i = 0; i < 10000; ++i) { + var o = {}; + + if (hasCustomProperties(o)) + throw "Error: object shouldn't have custom properties yet."; + + o.f = 42; + + if (!hasCustomProperties(o)) + throw "Error: object should have custom properties already."; + } +})();