Index: test/JsValue.cpp |
=================================================================== |
--- a/test/JsValue.cpp |
+++ b/test/JsValue.cpp |
@@ -206,17 +206,17 @@ |
} |
TEST_F(JsValueTest, JsValueCallSingleArg) |
{ |
auto func = GetJsEngine().Evaluate("(function(arg) {return arg * 2;})"); |
EXPECT_EQ(10, func.Call(GetJsEngine().NewValue(5)).AsInt()); |
} |
-TEST_F(JsValueTest, ThrowingCoversion) |
+TEST_F(JsValueTest, ThrowingConversion) |
sergei
2018/08/07 13:14:51
It's unrelated but OK.
|
{ |
const std::string source("\ |
function Foo() {\ |
this.toString = function() {throw 'test1';};\ |
this.valueOf = function() {throw 'test2';};\ |
};\ |
new Foo()"); |
auto value = GetJsEngine().Evaluate(source); |