diff options
Diffstat (limited to 'js/src/tests/test262/intl402/Locale/prototype/toStringTag/toString-removed-tag.js')
-rw-r--r-- | js/src/tests/test262/intl402/Locale/prototype/toStringTag/toString-removed-tag.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/js/src/tests/test262/intl402/Locale/prototype/toStringTag/toString-removed-tag.js b/js/src/tests/test262/intl402/Locale/prototype/toStringTag/toString-removed-tag.js new file mode 100644 index 0000000000..116caedeb7 --- /dev/null +++ b/js/src/tests/test262/intl402/Locale/prototype/toStringTag/toString-removed-tag.js @@ -0,0 +1,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); |