summaryrefslogtreecommitdiff
path: root/platform/web
diff options
context:
space:
mode:
authorZae <zaevi@live.com>2022-10-10 19:28:43 +0800
committerZae <zaevi@live.com>2022-10-10 19:28:43 +0800
commitbf61af6ae90cedd2a56bd03703ab9ac8460acb31 (patch)
tree48b75026d557b2f7d0ed50a32130cb691fe7e392 /platform/web
parent104af08e9d7c8308c2dd6cad89a0caee774043a0 (diff)
Fix Object type in GodotJSWrapper.
Diffstat (limited to 'platform/web')
-rw-r--r--platform/web/js/libs/library_godot_javascript_singleton.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/web/js/libs/library_godot_javascript_singleton.js b/platform/web/js/libs/library_godot_javascript_singleton.js
index 692f27676a..c86cbbae45 100644
--- a/platform/web/js/libs/library_godot_javascript_singleton.js
+++ b/platform/web/js/libs/library_godot_javascript_singleton.js
@@ -88,7 +88,7 @@ const GodotJSWrapper = {
return GodotRuntime.getHeapValue(val, 'double');
case 4:
return GodotRuntime.parseString(GodotRuntime.getHeapValue(val, '*'));
- case 21: // OBJECT
+ case 24: // OBJECT
return GodotJSWrapper.get_proxied_value(GodotRuntime.getHeapValue(val, 'i64'));
default:
return undefined;
@@ -117,7 +117,7 @@ const GodotJSWrapper = {
}
const id = GodotJSWrapper.get_proxied(p_val);
GodotRuntime.setHeapValue(p_exchange, id, 'i64');
- return 21;
+ return 24; // OBJECT
},
},