v8/test/mjsunit/harmony/bigint
Adam Klein ead5abac9d [bigint] Correct StringToBigInt radix and junk handling
Fix two more places where StringToBigInt differs from parseInt:
  - Binary and octal radix prefixes are supported
  - Trailing non-whitespace junk is not allowed

This is done with a new Behavior enum in BigIntParseIntHelper,
along with a couple of bool configuration flags in StringToIntHelper.

Bug: v8:6791, v8:7038
Change-Id: Ib91bfc5ccb04ad0dd6c99bc81e19c1239264a469
Reviewed-on: https://chromium-review.googlesource.com/764595
Reviewed-by: Jakob Kummerow <jkummerow@chromium.org>
Reviewed-by: Georg Neis <neis@chromium.org>
Commit-Queue: Adam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49335}
2017-11-13 18:55:00 +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] Correct StringToBigInt radix and junk handling 2017-11-13 18:55:00 +00:00
comparisons.js [bigint] Correct StringToBigInt radix and junk handling 2017-11-13 18:55:00 +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