2014-12-14 01:01:34 +01:00
|
|
|
// Copyright 2016 Rick Waldron. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
2016-02-22 20:46:39 +01:00
|
|
|
esid: sec-applying-the-exp-operator
|
2014-12-14 01:01:34 +01:00
|
|
|
description: If abs(base) is 1 and exponent is +∞, the result is NaN.
|
|
|
|
---*/
|
|
|
|
|
|
|
|
|
|
|
|
var exponent = +Infinity;
|
|
|
|
var bases = [];
|
|
|
|
bases[0] = -1;
|
|
|
|
bases[1] = 1
|
|
|
|
|
|
|
|
for (var i = 0; i < bases.length; i++) {
|
|
|
|
if (!isNaN(bases[i] ** exponent)) {
|
|
|
|
$ERROR("isNaN(" + bases[i] + " ** " + exponent + ") === false");
|
|
|
|
}
|
|
|
|
}
|