b213e0fd8b
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}
6 lines
247 B
Plaintext
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
|