Index: test/cctest/compiler/function-tester.h |
diff --git a/test/cctest/compiler/function-tester.h b/test/cctest/compiler/function-tester.h |
index 9246dfb79e47d4f6a9a26ed01ddd59985eb9aa8f..c7304f1da70089d791e249ac1107ea5269065c8f 100644 |
--- a/test/cctest/compiler/function-tester.h |
+++ b/test/cctest/compiler/function-tester.h |
@@ -61,6 +61,11 @@ class FunctionTester : public InitializedHandleScope { |
return Execution::Call(isolate, function, undefined(), 0, nullptr); |
} |
+ MaybeHandle<Object> Call(Handle<Object> a) { |
+ Handle<Object> args[] = {a}; |
+ return Execution::Call(isolate, function, undefined(), 1, args); |
+ } |
+ |
MaybeHandle<Object> Call(Handle<Object> a, Handle<Object> b) { |
Handle<Object> args[] = {a, b}; |
return Execution::Call(isolate, function, undefined(), 2, args); |