summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/intl402/Locale/prototype/toStringTag/toString-removed-tag.js
blob: 116caedeb7ce7f43d5b37384b55d3e78f45a7f83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2018 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-intl.locale.prototype-@@tostringtag
description: >
    Checks Object.prototype.toString with Intl.Locale objects.
info: |
    Intl.Locale.prototype[ @@toStringTag ]

    The initial value of the @@toStringTag property is the string value "Intl.Locale".
features: [Intl.Locale, Symbol.toStringTag]
---*/

delete Intl.Locale.prototype[Symbol.toStringTag];

assert.sameValue(Object.prototype.toString.call(Intl.Locale.prototype), "[object Object]");
assert.sameValue(Object.prototype.toString.call(new Intl.Locale("en")), "[object Object]");

reportCompare(0, 0);