diff options
Diffstat (limited to 'deps/v8/src/builtins/typed-array-every.tq')
-rw-r--r-- | deps/v8/src/builtins/typed-array-every.tq | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/deps/v8/src/builtins/typed-array-every.tq b/deps/v8/src/builtins/typed-array-every.tq index 85b4a77618..4f8804880e 100644 --- a/deps/v8/src/builtins/typed-array-every.tq +++ b/deps/v8/src/builtins/typed-array-every.tq @@ -11,7 +11,9 @@ namespace typed_array_every { array: typed_array::AttachedJSTypedArray, callbackfn: Callable, thisArg: Object): Boolean { let witness = typed_array::NewAttachedJSTypedArrayWitness(array); - const length: Smi = Convert<Smi>(witness.Get().length); + // TODO(v8:4153): Support huge TypedArrays here. + const length = + Cast<Smi>(Convert<Number>(witness.Get().length)) otherwise unreachable; for (let k: Smi = 0; k < length; k++) { // BUG(4895): We should throw on detached buffers rather than simply exit. witness.Recheck() otherwise break; |