]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/static-getter-names.js
1 function shouldBe(actual
, expected
) {
2 if (actual
!== expected
)
3 throw new Error('bad value: ' + actual
);
13 for (var name
of names
) {
14 var descriptor
= Object
.getOwnPropertyDescriptor(RegExp
.prototype, name
);
15 shouldBe(descriptor
.get.name
, 'get ' + name
);