blob: 8637ecca2694e0f55ac403288530523e0f246400 [file] [log] [blame]
// Copyright 2016 Rick Waldron. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-applying-the-exp-operator
description: If base is −∞ and exponent > 0 and exponent is not an odd integer, the result is +∞.
---*/
var base = -Infinity;
var exponents = [];
exponents[0] = 0.000000000000001;
exponents[1] = 2;
exponents[2] = Math.PI;
exponents[3] = 1.7976931348623157E308; //largest finite number
exponents[4] = +Infinity;
for (var i = 0; i < exponents.length; i++) {
if ((base ** exponents[i]) !== +Infinity) {
throw new Test262Error("(" + base + " ** " + exponents[i] + ") !== +Infinity");
}
}