Commit 17429d2b authored by Igor Sheludko's avatar Igor Sheludko Committed by Commit Bot

[builtins] Fix %TypedArray%.from builtin

... broken during porting to Torque here
https://chromium-review.googlesource.com/c/v8/v8/+/1891610

Bug: chromium:1028538
Bug: v8:8906
Bug: v8:4153
Change-Id: I0fb33299832964a1990e9e60a351aa88e246b3a3
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1955585
Commit-Queue: Igor Sheludko <ishell@chromium.org>
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Auto-Submit: Igor Sheludko <ishell@chromium.org>
Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65366}
parent 80bb70a2
...@@ -85,7 +85,7 @@ namespace typed_array { ...@@ -85,7 +85,7 @@ namespace typed_array {
// Builtins::kTypedArrayPrototypeValues. // Builtins::kTypedArrayPrototypeValues.
const iteratorFn = const iteratorFn =
Cast<JSFunction>(usingIterator) otherwise UseUserProvidedIterator; Cast<JSFunction>(usingIterator) otherwise UseUserProvidedIterator;
if (TaggedEqual( if (!TaggedEqual(
iteratorFn.shared_function_info.function_data, iteratorFn.shared_function_info.function_data,
SmiConstant(kTypedArrayPrototypeValues))) SmiConstant(kTypedArrayPrototypeValues)))
goto UseUserProvidedIterator; goto UseUserProvidedIterator;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment