Index: src/builtins/builtins-promise.cc |
diff --git a/src/builtins/builtins-promise.cc b/src/builtins/builtins-promise.cc |
index 2ad0b1658b8b886ecdebe3d2db44f6dbeae13490..a1a556dc99a154801a40a69485715c413b7fe261 100644 |
--- a/src/builtins/builtins-promise.cc |
+++ b/src/builtins/builtins-promise.cc |
@@ -681,7 +681,7 @@ void PromiseBuiltinsAssembler::InternalResolvePromise(Node* context, |
Bind(&cycle_check); |
// 6. If SameValue(resolution, promise) is true, then |
- GotoIf(SameValue(promise, result, context), &if_cycle); |
+ GotoIf(SameValue(promise, result), &if_cycle); |
// 7. If Type(resolution) is not Object, then |
GotoIf(TaggedIsSmi(result), &fulfill); |
@@ -1427,7 +1427,7 @@ TF_BUILTIN(PromiseResolve, PromiseBuiltinsAssembler) { |
CallStub(getproperty_callable, context, value, constructor_str); |
// 3.b If SameValue(xConstructor, C) is true, return x. |
- GotoIfNot(SameValue(constructor, receiver, context), &if_valueisnotpromise); |
+ GotoIfNot(SameValue(constructor, receiver), &if_valueisnotpromise); |
Return(value); |
} |