[builtins] Remove invalid assert
Removing the iterator from an array does not stop it being a fast array (at least as far as BranchIfJSFastArray is concerned). The rest of the code is not affected by whether the assert is false so this only affected debug builds. Change-Id: Iff78b8b21f3cc76a43d4251b4ba6ab078467db61 Reviewed-on: https://chromium-review.googlesource.com/976122 Reviewed-by: Peter Marshall <petermarshall@chromium.org> Commit-Queue: Dan Elphick <delphick@chromium.org> Cr-Commit-Position: refs/heads/master@{#52181}
This commit is contained in:
parent
6251593674
commit
5667173aff
@ -2123,11 +2123,8 @@ TF_BUILTIN(ArrayFrom, ArrayPopulatorAssembler) {
|
||||
}
|
||||
}
|
||||
|
||||
// Since there's no iterator, items cannot be a Fast JS Array.
|
||||
BIND(¬_iterable);
|
||||
{
|
||||
CSA_ASSERT(this, Word32BinaryNot(IsFastJSArray(array_like, context)));
|
||||
|
||||
// Treat array_like as an array and try to get its length.
|
||||
length = ToLength_Inline(
|
||||
context, GetProperty(context, array_like, factory()->length_string()));
|
||||
|
Loading…
Reference in New Issue
Block a user