Backed out 3 changesets (bug 1844563, bug 1906826) for crashes a=backout
[gecko.git] / js / src / tests / test262 / built-ins / Number / prototype / toExponential / return-abrupt-tointeger-fractiondigits-symbol.js
bloba281c9282d57f59d5ec99c7f63f71eeab7220464
1 // Copyright (C) 2016 The V8 Project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 esid: sec-number.prototype.toexponential
6 description: >
7   Return abrupt completion from ToInteger(symbol fractionDigits)
8 info: |
9   Number.prototype.toExponential ( fractionDigits )
11   1. Let x be ? thisNumberValue(this value).
12   2. Let f be ? ToInteger(fractionDigits).
13   [...]
14 features: [Symbol]
15 ---*/
17 var fd = Symbol("1");
19 assert.throws(TypeError, function() {
20   NaN.toExponential(fd);
21 });
23 reportCompare(0, 0);