v8/test/mjsunit/harmony/bigint
Georg Neis 8cf319fec8 [bigint] Make ToBigInt throw the correct error.
We must throw a SyntaxError only when failing to convert a string. In
the other cases we must throw a TypeError.

R=jkummerow@chromium.org

Bug: v8:6791
Change-Id: I802d8b6830b341f87e46e7de198af74ba95b8658
Reviewed-on: https://chromium-review.googlesource.com/752803
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49131}
2017-11-06 09:04:23 +00:00
..
add.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
and.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
basics.js [bigint] Make ToBigInt throw the correct error. 2017-11-06 09:04:23 +00:00
comparisons.js [bigint] Flatten string in Runtime_BigIntEqualToString 2017-10-27 05:51:23 +00:00
dec.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
div.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
inc.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
json.js [bigint] Adapt JSON.stringify. 2017-10-25 07:13:47 +00:00
mod.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
mul.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
neg.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
not.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
or.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
sar.js [bigint] Fix RightShift by 32 2017-10-25 18:03:18 +00:00
shl.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
sub.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00
tonumber.js [bigint] Adapt Number() to convert BigInts 2017-10-28 01:59:32 +00:00
too-big-literal.js [bigint] Restrict the length of literals in the scanner 2017-10-31 22:14:14 +00:00
xor.js [bigint] Add tests for unary/binary ops 2017-10-23 19:11:01 +00:00