This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit caa80c1
1 parent b545bd9 commit caa80c1 Copy full SHA for caa80c1
File tree 2 files changed +12
-4
lines changed
test/intl402/NumberFormat/prototype/toStringTag
2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 4
4
/*---
5
5
esid: sec-intl.numberformat.prototype-@@tostringtag
6
6
description: >
7
- Check that the initial value of the property is "Object " and that any changes
7
+ Check that the initial value of the property is "Intl.NumberFormat " and that any changes
8
8
made by reconfiguring are reflected.
9
9
---*/
10
10
11
- assert . sameValue ( Intl . NumberFormat . prototype [ Symbol . toStringTag ] , 'Object ' ) ;
11
+ assert . sameValue ( Intl . NumberFormat . prototype [ Symbol . toStringTag ] , 'Intl.NumberFormat ' ) ;
12
12
assert . sameValue (
13
13
Object . prototype . toString . call ( new Intl . NumberFormat ( ) ) ,
14
- '[object Object ]'
14
+ '[object Intl.NumberFormat ]'
15
15
) ;
16
16
17
17
Object . defineProperty ( Intl . NumberFormat . prototype , Symbol . toStringTag , {
@@ -23,3 +23,11 @@ assert.sameValue(
23
23
Object . prototype . toString . call ( new Intl . NumberFormat ( ) ) ,
24
24
'[object Alpha]'
25
25
) ;
26
+
27
+ delete Intl . NumberFormat . prototype [ Symbol . toStringTag ] ;
28
+
29
+ assert . sameValue ( Intl . NumberFormat . prototype [ Symbol . toStringTag ] , undefined ) ;
30
+ assert . sameValue (
31
+ Object . prototype . toString . call ( new Intl . NumberFormat ( ) ) ,
32
+ '[object Object]'
33
+ ) ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ includes: [propertyHelper.js]
9
9
---*/
10
10
11
11
verifyProperty ( Intl . NumberFormat . prototype , Symbol . toStringTag , {
12
- value : 'Object ' ,
12
+ value : 'Intl.NumberFormat ' ,
13
13
writable : false ,
14
14
enumerable : false ,
15
15
configurable : true
You can’t perform that action at this time.
0 commit comments