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