Add object dependency tracking to make sure that during nested function calls all returned values are not prematurely destructed.
All tests pass on vc2008 now.
This commit is contained in:
@@ -138,6 +138,7 @@ namespace chaiscript
|
||||
try {
|
||||
if (lhs.is_undef()) {
|
||||
retval = ss.call_function("clone", retval);
|
||||
retval.clear_dependencies();
|
||||
}
|
||||
|
||||
try {
|
||||
|
Reference in New Issue
Block a user