Merge pull request #67184 from zaevi/web_fix_GodotJSWrapper_object_type

[Web] Fix `Object` type in GodotJSWrapper.
This commit is contained in:
Fabio Alessandrelli 2022-10-10 17:41:10 +02:00 committed by GitHub
commit 15a8e17b87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
},
},