blob: ed2ac8dabd3949e0d2f795e6aec336d5b0599422 [file] [log] [blame]
function shouldBe(actual, expected) {
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
var object = {};
$vm.toUncacheableDictionary(object);
shouldBe(String(object), `[object Object]`);
shouldBe(String(object), `[object Object]`);
shouldBe(String(object), `[object Object]`);
object[Symbol.toStringTag] = "OK";
shouldBe(String(object), `[object OK]`);
shouldBe(String(object), `[object OK]`);
shouldBe(String(object), `[object OK]`);