1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
5 description: If exponent is −0, the result is 1, even if base is NaN.
6 esid: sec-applying-the-exp-operator
11 var base = new Array();
13 base[1] = -1.7976931348623157E308; //largest (by module) finite number
14 base[2] = -0.000000000000001;
17 base[5] = 0.000000000000001;
18 base[6] = 1.7976931348623157E308; //largest finite number
23 for (var i = 0; i < basenum; i++) {
24 if (Math.pow(base[i], exponent) !== 1) {
25 throw new Test262Error("#1: Math.pow(" + base[i] + ", -0) !== 1");