]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/static-getter-enumeration.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / static-getter-enumeration.js
1 function shouldBe(actual, expected) {
2 if (actual !== expected)
3 throw new Error('bad value: ' + actual);
4 }
5
6 var keys = Object.keys(/Cocoa/);
7
8 shouldBe(JSON.stringify(keys.sort()), '[]'); // non enumerable