blob: da51a18170c573dbdec6be796f813d0b23e72a2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// 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 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++) {
assert.sameValue(
bases[i] ** exponent,
NaN,
bases[i] + " ** " + exponent
);
}
reportCompare(0, 0);
|