blob: 5bc19a839f22de3e8bfac826c8c890ef4ca6bde5 [file] [log] [blame]
"use strict";
Object.defineProperty(String.prototype, "toLocaleString", {
get() {
// Congratulations! You probably fixed primitive-this getters.
// Change "object" to "string".
assertEq(typeof this, "object");
return function() { return typeof this; };
}
})
assertEq(["test"].toLocaleString(), "string");
if (typeof reportCompare === "function")
reportCompare(true, true);