forked from mirrors/0ad
Exact stack rooting for ScriptInterface::ToString.
I had to change a few other functions to take JS::MutableHandleValue because JS::Stringify takes a JS::MutableHandleValue as input parameter. That seems a bit strange because it should not change that value. I assume it has historical reasons. Refs #2415 Refs #2462 This was SVN commit r15605.
This commit is contained in:
@@ -147,7 +147,7 @@ void CDebugSerializer::PutString(const char* name, const std::string& value)
|
||||
m_Stream << INDENT << name << ": " << "\"" << escaped << "\"\n";
|
||||
}
|
||||
|
||||
void CDebugSerializer::PutScriptVal(const char* name, JS::HandleValue value)
|
||||
void CDebugSerializer::PutScriptVal(const char* name, JS::MutableHandleValue value)
|
||||
{
|
||||
std::wstring source = m_ScriptInterface.ToString(value, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user