···14691469compat-table/intl/Number.prototype.toLocaleString.js: OK
14701470compat-table/intl/Object.prototype.toLocaleString.js: OK
14711471compat-table/intl/String.prototype.localeCompare.js: OK
14721472-compat-table/next/Array.isTemplateObject.js: TypeError: undefined is not a function
14721472+compat-table/next/Array.isTemplateObject.js: OK
14731473compat-table/next/AsyncDisposableStack.js: OK
14741474compat-table/next/AsyncIterator.extends.js: OK
14751475compat-table/next/AsyncIterator.from.async-iterable.js: OK
···11+const assert = (cond, msg) => {
22+ if (!cond) throw new Error(msg);
33+};
44+55+let captured;
66+function tag(strings) {
77+ captured = strings;
88+ return strings;
99+}
1010+1111+const first = tag`a${1}b`;
1212+const sameTextDifferentSite = tag`a${2}b`;
1313+1414+function sameSite(value) {
1515+ return tag`a${value}b`;
1616+}
1717+1818+const sameSiteFirst = sameSite(1);
1919+const sameSiteSecond = sameSite(2);
2020+2121+assert(typeof Array.isTemplateObject === "function", "Array.isTemplateObject should exist");
2222+assert(Array.isTemplateObject(first) === true, "tagged template strings array should be a template object");
2323+assert(Array.isTemplateObject(first.raw) === false, "raw array should not be a template object");
2424+assert(Array.isTemplateObject([]) === false, "ordinary array should not be a template object");
2525+assert(Array.isTemplateObject(Object.freeze(["a", "b"])) === false, "frozen ordinary array should not be a template object");
2626+assert(Array.isTemplateObject({ raw: ["a"] }) === false, "ordinary object should not be a template object");
2727+assert(Array.isTemplateObject("not an array") === false, "primitive should not be a template object");
2828+assert(Array.isTemplateObject() === false, "missing argument should return false");
2929+assert(first !== sameTextDifferentSite, "different template sites should not reuse the same object");
3030+assert(sameSiteFirst === sameSiteSecond, "same template site should reuse the same object");
3131+assert(captured === sameSiteSecond, "tag should receive cached template object");
3232+3333+console.log("Array.isTemplateObject tests ok");