blob: b9f8e49fb2db8e88b27582472167be3d8a3e7c66 [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
var ab16bit = 'abcĀ'.replace(/c.*/, '');
var map = {};
map[ab16bit];
var ropeAB = 'a' + 'b';
var ropeABC = ropeAB + 'c';
map[ropeAB];
map[ropeABC] = 42;
shouldBe(JSON.stringify(map), '{"abc":42}');