commit | e8111c396fef38da6654093433b4be93bed01dce | [log] [tgz] |
---|---|---|
author | Alexey Kozyatinskiy <kozyatinskiy@chromium.org> | Fri Aug 11 00:28:29 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Aug 11 00:28:29 2017 |
tree | e22cae953c92db63c2a582d8e0c4980aa284b9a5 | |
parent | fa034cb19608796ffca855be881271cfbd9a9129 [diff] |
[DevTools] support top-level await in console If expression could be successfully compiled without preprocessing - we do nothing. Otherwise if function contains await expression: - if variable is var or variable is top-level we remove variable kind to make it available in global scope. - function definitions: function foo() {} -> foo = function foo() {} - top-level class definitions: class Foo {} -> Foo = class Foo {} R=lushnikov@chromium.org,loue@chromium.org Bug: chromium:658558 Change-Id: I8e9d26b93c3e53a966e43ec9c72b931a45c1a294 Reviewed-on: https://chromium-review.googlesource.com/601509 Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org> Reviewed-by: Andrey Lushnikov <lushnikov@chromium.org> Cr-Commit-Position: refs/heads/master@{#493612}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .