Commit 7a2553ff authored by verwaest's avatar verwaest Committed by Commit bot

Reorder DCHECKs so !is_with_scope() has a chance of being useful

BUG=v8:5209

Review-Url: https://codereview.chromium.org/2247073003
Cr-Commit-Position: refs/heads/master@{#38646}
parent b4c1aefb
......@@ -1306,8 +1306,8 @@ Variable* Scope::LookupRecursive(VariableProxy* proxy,
return nullptr;
}
} else {
DCHECK(is_function_scope() || is_script_scope() || is_eval_scope());
DCHECK(!is_with_scope());
DCHECK(is_function_scope() || is_script_scope() || is_eval_scope());
}
if (calls_sloppy_eval() && is_declaration_scope() && !is_script_scope()) {
......
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