mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Add additional initial value tests
This commit is contained in:
parent
c129ac8546
commit
e566c813b5
test/intl402/NumberFormat/prototype/toStringTag
@ -12,3 +12,13 @@ assert.sameValue(
|
||||
Object.prototype.toString.call(new Intl.NumberFormat()),
|
||||
'[object Object]'
|
||||
);
|
||||
|
||||
Object.defineProperty(Intl.NumberFormat.prototype, Symbol.toStringTag, {
|
||||
value: 'Alpha'
|
||||
});
|
||||
|
||||
assert.sameValue(Intl.NumberFormat.prototype[Symbol.toStringTag], 'Alpha');
|
||||
assert.sameValue(
|
||||
Object.prototype.toString.call(new Intl.NumberFormat()),
|
||||
'[object Alpha]'
|
||||
);
|
||||
|
@ -8,7 +8,7 @@ description: >
|
||||
includes: [propertyHelper.js]
|
||||
---*/
|
||||
|
||||
verifyProperty(Intl.NumberFormat, Symbol.toStringTag, {
|
||||
verifyProperty(Intl.NumberFormat.prototype, Symbol.toStringTag, {
|
||||
writable: false,
|
||||
enumerable: false,
|
||||
configurable: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user