v8/src/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
..
bigint-internal.cc [bigint] Define V8_ADVANCED_BIGINT_ALGORITHMS everywhere 2021-07-27 15:17:34 +00:00
bigint-internal.h [bigint] Faster parsing from long strings 2021-08-20 10:54:34 +00:00
bigint.h [bigint] Truncate huge error messages 2021-09-01 10:09:52 +00:00
DEPS Reland "[bigint] Begin src/bigint refactoring" 2021-03-23 16:21:06 +00:00
digit-arithmetic.h [bigint] Burnikel-Ziegler division 2021-06-22 17:58:21 +00:00
div-barrett.cc [bigint] Fix corner-case bugs in fast .toString 2021-07-28 09:52:26 +00:00
div-burnikel.cc [bigint] Burnikel-Ziegler division 2021-06-22 17:58:21 +00:00
div-helpers.cc [bigint] Move division to src/bigint/ 2021-06-15 16:24:39 +00:00
div-helpers.h [bigint] Burnikel-Ziegler division 2021-06-22 17:58:21 +00:00
div-schoolbook.cc [bigint] Burnikel-Ziegler division 2021-06-22 17:58:21 +00:00
fromstring.cc [bigint] Faster parsing from long strings 2021-08-20 10:54:34 +00:00
mul-fft.cc [bigint] Fix ignored bit in recursive FFT multiplication 2021-07-16 12:11:53 +00:00
mul-karatsuba.cc [bigint] Barrett-Newton division 2021-07-15 16:59:44 +00:00
mul-schoolbook.cc Reland^2 "[bigint] Karatsuba multiplication" 2021-06-07 11:01:14 +00:00
mul-toom.cc Reland "[bigint] FFT-based multiplication" 2021-07-09 14:22:33 +00:00
OWNERS [bigint] Move addition/subtraction to src/bigint/ 2021-07-02 10:27:30 +00:00
tostring.cc [bigint] Two more fixes for fast .toString() 2021-08-06 17:08:05 +00:00
util.h [bigint] Move toString conversion to src/bigint/ 2021-06-25 15:37:37 +00:00
vector-arithmetic.cc [bigint] Move addition/subtraction to src/bigint/ 2021-07-02 10:27:30 +00:00
vector-arithmetic.h [bigint] Barrett-Newton division 2021-07-15 16:59:44 +00:00