소스 검색

Merge pull request #67184 from zaevi/web_fix_GodotJSWrapper_object_type

[Web] Fix `Object` type in GodotJSWrapper.
Fabio Alessandrelli 3 년 전
부모
커밋
15a8e17b87
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      platform/web/js/libs/library_godot_javascript_singleton.js

+ 2 - 2
platform/web/js/libs/library_godot_javascript_singleton.js

@@ -88,7 +88,7 @@ const GodotJSWrapper = {
 				return GodotRuntime.getHeapValue(val, 'double');
 				return GodotRuntime.getHeapValue(val, 'double');
 			case 4:
 			case 4:
 				return GodotRuntime.parseString(GodotRuntime.getHeapValue(val, '*'));
 				return GodotRuntime.parseString(GodotRuntime.getHeapValue(val, '*'));
-			case 21: // OBJECT
+			case 24: // OBJECT
 				return GodotJSWrapper.get_proxied_value(GodotRuntime.getHeapValue(val, 'i64'));
 				return GodotJSWrapper.get_proxied_value(GodotRuntime.getHeapValue(val, 'i64'));
 			default:
 			default:
 				return undefined;
 				return undefined;
@@ -117,7 +117,7 @@ const GodotJSWrapper = {
 			}
 			}
 			const id = GodotJSWrapper.get_proxied(p_val);
 			const id = GodotJSWrapper.get_proxied(p_val);
 			GodotRuntime.setHeapValue(p_exchange, id, 'i64');
 			GodotRuntime.setHeapValue(p_exchange, id, 'i64');
-			return 21;
+			return 24; // OBJECT
 		},
 		},
 	},
 	},