mirror of
https://github.com/tc39/test262.git
synced 2025-07-21 04:54:44 +02:00
Add a test for Object.prototype.toString with Intl.ListFormat objects.
This commit is contained in:
parent
46a0ff6e41
commit
b46778dc0f
16
test/intl402/ListFormat/prototype/toStringTag/toString.js
vendored
Normal file
16
test/intl402/ListFormat/prototype/toStringTag/toString.js
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
// Copyright 2018 Igalia, S.L. All rights reserved.
|
||||
// This code is governed by the BSD license found in the LICENSE file.
|
||||
|
||||
/*---
|
||||
esid: sec-intl.ListFormat.prototype-@@tostringtag
|
||||
description: >
|
||||
Checks Object.prototype.toString with Intl.ListFormat objects.
|
||||
info: |
|
||||
Intl.ListFormat.prototype[ @@toStringTag ]
|
||||
|
||||
The initial value of the @@toStringTag property is the string value "Intl.ListFormat".
|
||||
features: [Intl.ListFormat]
|
||||
---*/
|
||||
|
||||
assert.sameValue(Object.prototype.toString.call(Intl.ListFormat.prototype), "[object Intl.ListFormat]");
|
||||
assert.sameValue(Object.prototype.toString.call(new Intl.ListFormat()), "[object Intl.ListFormat]");
|
Loading…
x
Reference in New Issue
Block a user