summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-10-10 17:41:10 +0200
committerGitHub <noreply@github.com>2022-10-10 17:41:10 +0200
commit15a8e17b8753e721a52a507919043a45d9abdfa4 (patch)
tree69edc1a28edd5303eceee5d2eb2583a57bb0f0ad /platform
parent77f4670d001b12a5c7e1f50c100301c8fb1b4d1e (diff)
parentbf61af6ae90cedd2a56bd03703ab9ac8460acb31 (diff)
Merge pull request #67184 from zaevi/web_fix_GodotJSWrapper_object_type
[Web] Fix `Object` type in GodotJSWrapper.
Diffstat (limited to 'platform')
-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
},
},