Skip to content

Commit

Permalink
Add missing test for Math.pow(1, NaN)
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari authored and Ms2ger committed Jul 15, 2024
1 parent b01075d commit b672abd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/built-ins/Math/pow/applying-the-exp-operator_A1.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ base[5] = 0.000000000000001;
base[6] = 1.7976931348623157E308; //largest finite number
base[7] = +Infinity;
base[8] = NaN;
base[9] = 1; // In some implementations, the `pow` function might incorrectly return 1, deviating from the ECMA specification.
var basenum = 9;

for (var i = 0; i < basenum; i++) {
Expand Down

0 comments on commit b672abd

Please sign in to comment.