mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-05 02:52:39 +08:00
cleanup.
This commit is contained in:
@@ -100,7 +100,7 @@ namespace se {
|
||||
JsValueRef prototype;
|
||||
_CHECK(JsCreateObject(&prototype));
|
||||
|
||||
Object* prototypeObj = Object::_createJSObject(nullptr, prototype, true);
|
||||
Object* prototypeObj = Object::_createJSObject(this, prototype, true);
|
||||
|
||||
for (const auto& func : _funcs)
|
||||
{
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
//#define SCRIPT_ENGINE_SM
|
||||
#define SCRIPT_ENGINE_SM
|
||||
//#define SCRIPT_ENGINE_V8
|
||||
#define SCRIPT_ENGINE_JSC
|
||||
//#define SCRIPT_ENGINE_JSC
|
||||
//#define SCRIPT_ENGINE_CHAKRACORE
|
||||
|
||||
#ifdef ANDROID
|
||||
|
||||
@@ -151,7 +151,7 @@ namespace se {
|
||||
}
|
||||
else
|
||||
{
|
||||
HandleObject obj(Object::_createJSObject(nullptr, jsobj));
|
||||
HandleObject obj(Object::_createJSObject(nullptr, jsobj)); //FIXME: consider which in sm, new create a new object everytime?
|
||||
obj->root();
|
||||
data->setObject(obj);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user