Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 839893e4a654aa3d241c79f44e72aaa23d86eec0..deb8074c8c523e92fae209f3de63b46beddccef4 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -22172,6 +22172,12 @@ TEST(EmptyApiCallback) { |
result = CompileRun("x(1,2,3)"); |
CHECK(v8::Utils::OpenHandle(*result)->IsJSGlobalProxy()); |
+ result = CompileRun("x.call(undefined)"); |
+ CHECK(v8::Utils::OpenHandle(*result)->IsJSGlobalProxy()); |
+ |
+ result = CompileRun("x.call(null)"); |
+ CHECK(v8::Utils::OpenHandle(*result)->IsJSGlobalProxy()); |
+ |
result = CompileRun("7 + x.call(3) + 11"); |
CHECK(result->IsInt32()); |
CHECK_EQ(21, result->Int32Value(context.local()).FromJust()); |