v8/test/message/fail/destructuring-array-non-iterable-object-computed.out
legendecas b213e0fd8b [builtins] throw non-iterable error on iterator method not callable
CallPrinter cannot determine the actual reason when the error is
triggered by CallRuntime. In the case, throw iterator error by
default instead of non-callable error to present more intuitive
error messages.

Bug: v8:12039
Change-Id: I240f9a729878b2dd606f4cc71236c8427bba316e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3086902
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#76226}
2021-08-11 10:21:31 +00:00

6 lines
247 B
Plaintext

*%(basename)s:5: TypeError: object is not iterable (cannot read property Symbol(Symbol.iterator))
var [a] = (() => ({a: 1}))();
^
TypeError: object is not iterable (cannot read property Symbol(Symbol.iterator))
at *%(basename)s:5:11