Commit b7f796a6 authored by jochen's avatar jochen Committed by Commit bot

Don't require a context for global dynamic variables

Because we don't need one.

R=verwaest@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2277303002
Cr-Commit-Position: refs/heads/master@{#38914}
parent 2646749c
......@@ -712,7 +712,8 @@ Variable* Scope::DeclareLocal(const AstRawString* name, VariableMode mode,
Variable* DeclarationScope::DeclareDynamicGlobal(const AstRawString* name,
Variable::Kind kind) {
DCHECK(is_script_scope());
return Declare(zone(), this, name, DYNAMIC_GLOBAL, kind, kCreatedInitialized);
return variables_.Declare(zone(), this, name, DYNAMIC_GLOBAL, kind,
kCreatedInitialized);
}
......
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