commit | ceb92ebfdfb561d71038793c02b42aa973f55ec4 | [log] [tgz] |
---|---|---|
author | adamk <adamk@chromium.org> | Wed Nov 25 01:14:58 2015 |
committer | Commit bot <commit-bot@chromium.org> | Wed Nov 25 01:15:28 2015 |
tree | 082989e852fcee5143f28ac9d4d4f32cc06f3254 | |
parent | 9278b7b05a45c2089007e8b61822af96b5d0c8df [diff] |
Disallow destructuring in legacy sloppy for-in loop parsing For web compat reasons, we support an initializer in the declaration part of a for-in loop. But we should disallow this for destructured declarations (just as we do for lexical declarations). In fact, without disallowing it, we crash. Also fix up the PreParser to have the same restrictions here as the parser (the lexical check was missing there), verified by running the message tests with --min-preparse-length=0. In fixing the logic I've also cleaned up the code a bit, removing the only-called-once DeclarationParsingResult::SingleName method. BUG=v8:811 LOG=n Review URL: https://codereview.chromium.org/1471973003 Cr-Commit-Position: refs/heads/master@{#32236}
V8 is Google's open source JavaScript engine.
V8 implements ECMAScript as specified in ECMA-262.
V8 is written in C++ and is used in Google Chrome, the open source browser from Google.
V8 can run standalone, or can be embedded into any C++ application.
V8 Project page: https://github.com/v8/v8/wiki
Checkout depot tools, and run
fetch v8
This will checkout V8 into the directory v8
and fetch all of its dependencies. To stay up to date, run
git pull origin gclient sync
For fetching all branches, add the following into your remote configuration in .git/config
:
fetch = +refs/branch-heads/*:refs/remotes/branch-heads/* fetch = +refs/tags/*:refs/tags/*
Please follow the instructions mentioned on the V8 wiki.