Add Constructor.__isJSB for JSB classes. (#321)
This commit is contained in:
parent
23cbc65185
commit
b1d2c74774
|
|
@ -278,6 +278,7 @@ SE_DECLARE_FINALIZE_FUNC(js_delete_$jsdtor) %}
|
||||||
%{
|
%{
|
||||||
bool js_register_$jsmangledname(se::Object* obj) {
|
bool js_register_$jsmangledname(se::Object* obj) {
|
||||||
$jsclass_inheritance
|
$jsclass_inheritance
|
||||||
|
cls->defineStaticProperty("__isJSB", se::Value(true), se::PropertyAttribute::READ_ONLY | se::PropertyAttribute::DONT_ENUM | se::PropertyAttribute::DONT_DELETE);
|
||||||
$jsclassvariables
|
$jsclassvariables
|
||||||
$jsclassfunctions
|
$jsclassfunctions
|
||||||
$jsstaticclassvariables
|
$jsstaticclassvariables
|
||||||
|
|
|
||||||
|
|
@ -278,6 +278,7 @@ SE_DECLARE_FINALIZE_FUNC(js_delete_$jsdtor) %}
|
||||||
%{
|
%{
|
||||||
bool js_register_$jsmangledname(se::Object* obj) {
|
bool js_register_$jsmangledname(se::Object* obj) {
|
||||||
$jsclass_inheritance
|
$jsclass_inheritance
|
||||||
|
cls->defineStaticProperty("__isJSB", se::Value(true), se::PropertyAttribute::READ_ONLY | se::PropertyAttribute::DONT_ENUM | se::PropertyAttribute::DONT_DELETE);
|
||||||
$jsclassvariables
|
$jsclassvariables
|
||||||
$jsclassfunctions
|
$jsclassfunctions
|
||||||
$jsstaticclassvariables
|
$jsstaticclassvariables
|
||||||
|
|
|
||||||
|
|
@ -278,6 +278,7 @@ SE_DECLARE_FINALIZE_FUNC(js_delete_$jsdtor) %}
|
||||||
%{
|
%{
|
||||||
bool js_register_$jsmangledname(se::Object* obj) {
|
bool js_register_$jsmangledname(se::Object* obj) {
|
||||||
$jsclass_inheritance
|
$jsclass_inheritance
|
||||||
|
cls->defineStaticProperty("__isJSB", se::Value(true), se::PropertyAttribute::READ_ONLY | se::PropertyAttribute::DONT_ENUM | se::PropertyAttribute::DONT_DELETE);
|
||||||
$jsclassvariables
|
$jsclassvariables
|
||||||
$jsclassfunctions
|
$jsclassfunctions
|
||||||
$jsstaticclassvariables
|
$jsstaticclassvariables
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue