mirror of https://github.com/tc39/test262.git
Add additional initial value tests
This commit is contained in:
parent
c129ac8546
commit
e566c813b5
|
@ -12,3 +12,13 @@ assert.sameValue(
|
||||||
Object.prototype.toString.call(new Intl.NumberFormat()),
|
Object.prototype.toString.call(new Intl.NumberFormat()),
|
||||||
'[object Object]'
|
'[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]
|
includes: [propertyHelper.js]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
verifyProperty(Intl.NumberFormat, Symbol.toStringTag, {
|
verifyProperty(Intl.NumberFormat.prototype, Symbol.toStringTag, {
|
||||||
writable: false,
|
writable: false,
|
||||||
enumerable: false,
|
enumerable: false,
|
||||||
configurable: true
|
configurable: true
|
||||||
|
|
Loading…
Reference in New Issue