summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/object/toLocaleString-01.js
blob: 3fa2acc746070e5d32f1633dd429c6d78792536c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"use strict";

Object.defineProperty(String.prototype, "toString", {
    get() {
        assertEq(typeof this, "string");

        return function() { return typeof this; };
    }
})
assertEq(Object.prototype.toLocaleString.call("test"), "string");

if (typeof reportCompare === "function")
    reportCompare(true, true);