]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/object-is-extensible-accept-non-object.js
44c371da62538b6d373cad0e104a1571d20c6ab7
[apple/javascriptcore.git] / tests / stress / object-is-extensible-accept-non-object.js
1 var primitives = [
2 "string",
3 42,
4 null,
5 undefined,
6 Symbol("symbol"),
7 true,
8 false
9 ];
10
11 for (var primitive of primitives) {
12 var ret = Object.isExtensible(primitive);
13 if (ret !== false)
14 throw new Error("bad value: " + String(ret));
15 }