Skip to content
Snippets Groups Projects
Commit e566c813 authored by Ujjwal Sharma's avatar Ujjwal Sharma Committed by Rick Waldron
Browse files

Add additional initial value tests

parent c129ac85
Branches
No related tags found
No related merge requests found
...@@ -12,3 +12,13 @@ assert.sameValue( ...@@ -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: > ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment