mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 20:11:55 +00:00
Exact stack rooting for CParamNode
Refs #2415 Refs #2462 This was SVN commit r15944.
This commit is contained in:
1 parent
9040f8a3d3
commit
8e2d514228
4 files changed
+48
-25
No files matched your search
@@ -67,7 +67,7 @@ template<> void ScriptInterface::ToJSVal<IComponent*>(JSContext* cx, JS::Mutable
|
||||
template<> void ScriptInterface::ToJSVal<CParamNode>(JSContext* cx, JS::MutableHandleValue ret, CParamNode const& val)
|
||||
{
|
||||
JSAutoRequest rq(cx);
|
||||
ret.set(val.ToJSVal(cx, true));
|
||||
val.ToJSVal(cx, true, ret);
|
||||
|
||||
// Prevent modifications to the object, so that it's safe to share between
|
||||
// components and to reconstruct on deserialization
|
||||
|
||||
Reference in new issue
Block a user