Index: test/JsValue.cpp |
diff --git a/test/JsValue.cpp b/test/JsValue.cpp |
index cbecfe0f7ce2c6d14646edafc50694de478609b9..4658b8b6cd9c99543464901e5188110effd7069c 100644 |
--- a/test/JsValue.cpp |
+++ b/test/JsValue.cpp |
@@ -205,6 +205,12 @@ TEST_F(JsValueTest, FunctionValue) |
ASSERT_EQ("2/5/xyz", value->Call(params, thisPtr)->AsString()); |
} |
+TEST_F(JsValueTest, JsValueCallSingleArg) |
+{ |
+ auto func = jsEngine->Evaluate("(function(arg) {return arg * 2;})"); |
+ EXPECT_EQ(10, func->Call(*jsEngine->NewValue(5))->AsInt()); |
+} |
+ |
TEST_F(JsValueTest, ThrowingCoversion) |
{ |
const std::string source("\ |