Commit d6ad4c7f authored by mvstanton's avatar mvstanton Committed by Commit bot

An undefined literal should match as an undefined literal.

Just sayin'.

R=mstarzinger@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1813913004

Cr-Commit-Position: refs/heads/master@{#34901}
parent 62d2aa45
......@@ -64,6 +64,10 @@ bool Expression::IsNullLiteral() const {
bool Expression::IsUndefinedLiteral(Isolate* isolate) const {
if (IsLiteral() && AsLiteral()->value()->IsUndefined()) {
return true;
}
const VariableProxy* var_proxy = AsVariableProxy();
if (var_proxy == NULL) return false;
Variable* var = var_proxy->var();
......
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