Exact stack rooting for CParamNode

Refs #2415
Refs #2462

This was SVN commit r15944.
This commit is contained in:
Yves
2014-11-09 11:08:53 +00:00
parent 9040f8a3d3
commit 8e2d514228
4 changed files with 48 additions and 25 deletions
@@ -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