blob: 33b14a5de327ac24c77d331f987ebdcec61c5dbd [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
var symbol = Symbol("Cocoa");
shouldBe(symbol[0], undefined);
// ToObject(symbol).
symbol[0] = "Hello";
shouldBe(symbol[0], undefined);
Symbol.prototype[30] = 42;
shouldBe(symbol[30], 42);