Simplify a DCHECK.

R=sigurds@chromium.org

Change-Id: I409848080991b8fbf12b217cd648247940ee521d
Reviewed-on: https://chromium-review.googlesource.com/c/1417850
Reviewed-by: Sigurd Schneider <sigurds@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#58907}
This commit is contained in:
Georg Neis 2019-01-17 17:18:01 +01:00 committed by Commit Bot
parent 8665bac17a
commit 7d3a3385c7

View File

@ -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) {