Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit 4c219d3

Browse files
committed
more fixes related to NaN
1 parent 22ebaec commit 4c219d3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/11.numberformat.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -601,27 +601,27 @@ function PartitionNumberPattern(numberFormat, x) {
601601
// i. Remove the first element from groups and let integerGroup be the value of that element.
602602
let integerGroup = arrShift.call(groups);
603603
// ii. Add new part record { [[type]]: "integer", [[value]]: integerGroup } as a new element of the list result.
604-
arrPush.call(result, { type: 'integer', value: integerGroup });
604+
arrPush.call(result, { '[[type]]': 'integer', '[[value]]': integerGroup });
605605
// iii. If groups List is not empty, then:
606606
if (groups.length) {
607607
// 1. Add new part record { [[type]]: "group", [[value]]: groupSepSymbol } as a new element of the list result.
608-
arrPush.call(result, { type: 'group', value: groupSepSymbol });
608+
arrPush.call(result, { '[[type]]': 'group', '[[value]]': groupSepSymbol });
609609
}
610610
}
611611
}
612612
// 10. Else,
613613
else {
614614
// a. Add new part record { [[type]]: "integer", [[value]]: integer } as a new element of the list result.
615-
arrPush.call(result, { type: 'integer', value: integer });
615+
arrPush.call(result, { '[[type]]': 'integer', '[[value]]': integer });
616616
}
617617
// 11. If fraction is not undefined, then:
618618
if (fraction !== undefined) {
619619
// a. Let decimalSepSymbol be the ILND String representing the decimal separator.
620620
let decimalSepSymbol = ild.decimal;
621621
// a. Add new part record { [[type]]: "decimal", [[value]]: decimalSepSymbol } as a new element of the list result.
622-
arrPush.call(result, { type: 'decimal', value: decimalSepSymbol });
622+
arrPush.call(result, { '[[type]]': 'decimal', '[[value]]': decimalSepSymbol });
623623
// a. Add new part record { [[type]]: "fraction", [[value]]: fraction } as a new element of the list result.
624-
arrPush.call(result, { type: 'fraction', value: fraction });
624+
arrPush.call(result, { '[[type]]': 'fraction', '[[value]]': fraction });
625625
}
626626
}
627627
}
@@ -630,14 +630,14 @@ function PartitionNumberPattern(numberFormat, x) {
630630
// i. Let plusSignSymbol be the ILND String representing the plus sign.
631631
let plusSignSymbol = ild.plusSign;
632632
// ii. Add new part record { [[type]]: "plusSign", [[value]]: plusSignSymbol } as a new element of the list result.
633-
arrPush.call(result, { type: 'plusSign', value: plusSignSymbol });
633+
arrPush.call(result, { '[[type]]': 'plusSign', '[[value]]': plusSignSymbol });
634634
}
635635
// a. Else if p is equal "minusSign", then:
636636
else if (p === "minusSign") {
637637
// i. Let minusSignSymbol be the ILND String representing the minus sign.
638638
let minusSignSymbol = ild.minusSign;
639639
// ii. Add new part record { [[type]]: "minusSign", [[value]]: minusSignSymbol } as a new element of the list result.
640-
arrPush.call(result, { type: 'minusSign', value: minusSignSymbol });
640+
arrPush.call(result, { '[[type]]': 'minusSign', '[[value]]': minusSignSymbol });
641641
}
642642
// a. Else if p is equal "percentSign" and numberFormat.[[style]] is "percent", then:
643643
else if (p === "percentSign" && internal['[[style]]'] === "percent") {

0 commit comments

Comments
 (0)