Add additional initial value tests

This commit is contained in:
Ujjwal Sharma 2018-09-18 02:48:39 +05:30 committed by Rick Waldron
parent c129ac8546
commit e566c813b5
2 changed files with 11 additions and 1 deletions

View File

@ -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]'
);

View File

@ -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