This commit is contained in:
James Chen
2017-07-31 10:21:48 +08:00
parent 9862b765c8
commit b16c5de178
2 changed files with 0 additions and 4 deletions
@@ -30,7 +30,6 @@ namespace se {
{
assert(_jsRefCount == 0 || _jsRefCount == 1);
_cleanup();
AutoHandleScope::unrefObject(this);
}
Object* Object::createPlainObject(bool rooted)
@@ -142,7 +141,6 @@ namespace se {
JSValueProtect(__cx, _obj);
}
AutoHandleScope::refObject(this);
return true;
}
@@ -289,8 +289,6 @@ bool native_ptr_to_rooted_seval(typename std::enable_if<!std::is_base_of<cocos2d
else
{
obj = iter->second;
printf("Return from cache, type: (%s, %p), se::Object type: %s\n", typeid(*v).name(), v, obj->_privateDataType.c_str());
assert(0 == strcmp(typeid(*v).name(), obj->_privateDataType.c_str()));
if (isReturnCachedValue != nullptr)
{
*isReturnCachedValue = true;