diff --git a/src/stub-cache.cc b/src/stub-cache.cc index 76eb076a8d..69513da0a6 100644 --- a/src/stub-cache.cc +++ b/src/stub-cache.cc @@ -1138,7 +1138,7 @@ RUNTIME_FUNCTION(MaybeObject*, LoadPropertyWithInterceptorOnly) { Handle interceptor_info = args.at(1); ASSERT(kArgsOffset == 2); // No ReturnValue in interceptors. - ASSERT(args.length() == kArgsOffset + PCA::kArgsLength - 1); + ASSERT_EQ(kArgsOffset + PCA::kArgsLength - 2, args.length()); // TODO(rossberg): Support symbols in the API. if (name_handle->IsSymbol()) @@ -1205,7 +1205,7 @@ static MaybeObject* LoadWithInterceptor(Arguments* args, Handle interceptor_info = args->at(1); ASSERT(kArgsOffset == 2); // No ReturnValue in interceptors. - ASSERT(args->length() == kArgsOffset + PCA::kArgsLength - 1); + ASSERT_EQ(kArgsOffset + PCA::kArgsLength - 2, args->length()); Handle receiver_handle = args->at(kArgsOffset - PCA::kThisIndex); Handle holder_handle =