Commit 7d3a3385 authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

Simplify a DCHECK.

R=sigurds@chromium.org

Change-Id: I409848080991b8fbf12b217cd648247940ee521d
Reviewed-on: https://chromium-review.googlesource.com/c/1417850Reviewed-by: 's avatarSigurd Schneider <sigurds@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58907}
parent 8665bac1
......@@ -149,7 +149,7 @@ Object DeclareGlobals(Isolate* isolate, Handle<FixedArray> declarations,
bool is_var = initial_value->IsUndefined(isolate);
bool is_function = initial_value->IsSharedFunctionInfo();
DCHECK_EQ(1, BoolToInt(is_var) + BoolToInt(is_function));
DCHECK_NE(is_var, is_function);
Handle<Object> value;
if (is_function) {
......
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