Commit e4941f76 authored by Marja Hölttä's avatar Marja Hölttä Committed by Commit Bot

[parser] Follow-up to r50640: add cctest.

This adds a test-preparser cctest corresponding to the regression test added in
https://chromium-review.googlesource.com/865900

BUG=chromium:801772

Change-Id: I33d74e242fd765b91b7c148b9a0af4960a7b05ea
Reviewed-on: https://chromium-review.googlesource.com/870311Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#50688}
parent abe3bcdc
......@@ -89,6 +89,11 @@ TEST(PreParserScopeAnalysis) {
"get_method();",
true, true, false},
// Corner case: function expression with name "arguments".
{"var test = function arguments(%s) { %s function skippable() { } };\n"
"test;\n",
false, false, false}
// FIXME(marja): Generators and async functions
};
......
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