v8/test/mjsunit/harmony/bigint
Jakob Kummerow 11cd2317ac [bigint] Truncate huge error messages
When an attempt to parse a huge string to a BigInt fails, then
including the entire string in it makes the exception's message
unwieldy, so this patch puts only the first 1000 characters of
such invalid strings into the exception message.

Bug: chromium:1245239
Change-Id: I2c62f0d34256653ba67da9666e8c5a1a4bbe0599
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3133142
Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
Reviewed-by: Mathias Bynens <mathias@chromium.org>
Cr-Commit-Position: refs/heads/main@{#76619}
2021-09-01 10:09:52 +00:00
..
add.js
and.js
as-int-n.js [bigint] Fix cornercase in BigInt.asUintN 2019-02-28 01:42:16 +00:00
basics.js
comparisons.js
dataview.js
dec.js
div-special-cases.js [bigint] Define V8_ADVANCED_BIGINT_ALGORITHMS everywhere 2021-07-27 15:17:34 +00:00
div.js
exp.js
inc.js
json.js
misc.js
mod-special-cases.js [bigint] Move division to src/bigint/ 2021-06-15 16:24:39 +00:00
mod.js
mul-special-cases.js [bigint] Fix Karatsuba intermediate result length 2021-07-01 13:34:47 +00:00
mul.js
neg.js
not.js
or.js
property-names.js [parser] fix bigint as literal property names precision loss 2020-03-27 10:04:46 +00:00
regress-fftmul-2.js [bigint] Fix ignored bit in recursive FFT multiplication 2021-07-16 12:11:53 +00:00
regress-fftmul.js [bigint] Fix bugs in FFT multiplication 2021-07-12 10:48:15 +00:00
regress-minuszero.js [bigint] Fix accidental creation of "minus zero" BigInts 2021-08-02 10:47:46 +00:00
regress-tonumbercode.js [Test] Add PrepareForOptimization to some mjsunit tests. 2019-05-03 13:32:32 +00:00
regress-tostring-2.js [bigint] Two more fixes for fast .toString() 2021-08-06 17:08:05 +00:00
regress-tostring.js [bigint] Fix length of '0' sequences in fast .toString() 2021-07-26 16:46:13 +00:00
regressions.js [bigint] Make kMaxLength platform-independent. 2018-11-30 23:43:29 +00:00
rematerialize-on-deopt.js [turbofan] Push BigInt truncation over addition and heap constants 2019-07-12 09:05:29 +00:00
sar.js
shl.js
sub.js
tonumber.js
tostring-toolong.js [bigint] Truncate huge error messages 2021-09-01 10:09:52 +00:00
turbo.js [Test] Add PrepareForOptimization to some mjsunit tests. 2019-05-03 13:32:32 +00:00
typedarray.js [Test] Add PrepareForOptimization to some mjsunit tests. 2019-05-03 13:32:32 +00:00
xor.js