| 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.isFrozen(primitive); |
| 13 | if (ret !== true) |
| 14 | throw new Error("bad value: " + String(ret)); |
| 15 | } |