mirror of https://github.com/tc39/test262.git
21 lines
548 B
JavaScript
21 lines
548 B
JavaScript
// 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 an odd integer, the result is −∞.
|
|
---*/
|
|
|
|
|
|
var base = -Infinity;
|
|
var exponents = [];
|
|
exponents[0] = 1;
|
|
exponents[1] = 111;
|
|
exponents[2] = 111111;
|
|
|
|
for (var i = 0; i < exponents.length; i++) {
|
|
if ((base ** exponents[i]) !== -Infinity) {
|
|
$ERROR("(" + base + " ** " + exponents[i] + ") !== -Infinity");
|
|
}
|
|
}
|