mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-23 16:33:16 +00:00
Uses std::string_view for Script::Interface::Eval
This commit is contained in:
@@ -106,7 +106,7 @@ public:
|
||||
{
|
||||
std::string input = "Test._1p_v(0);";
|
||||
JS::RootedValue val(rq.cx);
|
||||
TS_ASSERT(script.Eval(input.c_str(), &val));
|
||||
TS_ASSERT(script.Eval(input, &val));
|
||||
}
|
||||
|
||||
Script::Function::Register<&TestFunctionWrapper::_3p_r>(script, "_3p_r");
|
||||
|
||||
Reference in New Issue
Block a user