v8/test
Mathias Bynens b645a259bd [parser] Allow try {} catch (e) { for (var e of x) {} }
This patch changes the parser to allow for-of initializer
var-redeclaration of non-destructured catch parameters.

Previously, the spec allowed var-redeclaration of a
non-destructured catch parameter…

    try {} catch (e) { var e; }

…except in the particular case where the var declaration is
a for-of initializer:

    try {} catch (e) { for (var e of whatever) {} }

https://github.com/tc39/ecma262/pull/1393 removes this strange
exceptional case. This patch implements that change.

BUG=v8:8759

Change-Id: Ia4e33ac1eab89085f8a5fdb547f479cfa38bbee5
Reviewed-on: https://chromium-review.googlesource.com/c/1444954
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
Commit-Queue: Mathias Bynens <mathias@chromium.org>
Cr-Commit-Position: refs/heads/master@{#59209}
2019-01-30 14:20:58 +00:00
..
benchmarks [Test] CSuite benchmark runner 2018-12-21 13:15:57 +00:00
cctest [js weak refs] Fix jumbo build 2019-01-30 14:12:23 +00:00
common Move CodeDesc to dedicated file 2019-01-30 14:08:59 +00:00
debugger [parser] Don't create proxies for vars without initialisers 2019-01-28 15:54:40 +00:00
fuzzer [wasm] Move Isolate management to WasmEngine 2019-01-25 11:19:54 +00:00
inspector [parser] Allow declaring variables without a proxy 2019-01-25 09:10:59 +00:00
intl [Intl] Skip regress-7770 on Android 2019-01-30 06:22:10 +00:00
js-perf-test [test] add performance tests for String#startsWith 2019-01-17 08:23:06 +00:00
memory [snapshot] Remove the builtins snapshot 2018-10-31 10:18:28 +00:00
message [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
mjsunit [parser] Allow try {} catch (e) { for (var e of x) {} } 2019-01-30 14:20:58 +00:00
mkgrokdump [nojit] Don't allocate executable memory in jitless mode 2019-01-10 10:55:48 +00:00
mozilla Revert "[runtime] Reduce spread/apply call max arguments" 2018-11-30 09:54:47 +00:00
preparser [test] Share resource-fetching logic with all d8 test cases 2018-08-29 17:51:43 +00:00
test262 [parser] Allow try {} catch (e) { for (var e of x) {} } 2019-01-30 14:20:58 +00:00
torque Reland "[torque] Implement safe initialization of classes through hidden structs" 2019-01-22 17:49:39 +00:00
unittests [heap] Refactor usages of the InNewSpace() predicate 2019-01-29 09:34:26 +00:00
wasm-js [wasm] fix js-api module/customSection 2019-01-29 20:05:10 +00:00
wasm-spec-tests [wasm] Update core wasm spec tests 2019-01-29 11:58:25 +00:00
webkit [json] Extend JSON#stringify error message for circular structures 2019-01-29 08:00:10 +00:00
BUILD.gn Reland "[wasm] Add a new wasm-js testsuite to run js-api tests" 2018-10-18 20:18:55 +00:00