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