This commit is contained in:
James Chen
2017-08-02 16:44:53 +08:00
parent 28469cc9f7
commit 0e50289cf7
3 changed files with 4 additions and 4 deletions
@@ -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);
}