diff options
Diffstat (limited to 'platform/web/js/libs/library_godot_runtime.js')
-rw-r--r-- | platform/web/js/libs/library_godot_runtime.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/platform/web/js/libs/library_godot_runtime.js b/platform/web/js/libs/library_godot_runtime.js index 73581759b0..4114aa566e 100644 --- a/platform/web/js/libs/library_godot_runtime.js +++ b/platform/web/js/libs/library_godot_runtime.js @@ -34,7 +34,7 @@ const GodotRuntime = { * Functions */ get_func: function (ptr) { - return wasmTable.get(ptr); // eslint-disable-line no-undef + return wasmTable.get(ptr); }, /* @@ -52,19 +52,19 @@ const GodotRuntime = { * Memory */ malloc: function (p_size) { - return _malloc(p_size); // eslint-disable-line no-undef + return _malloc(p_size); }, free: function (p_ptr) { - _free(p_ptr); // eslint-disable-line no-undef + _free(p_ptr); }, getHeapValue: function (p_ptr, p_type) { - return getValue(p_ptr, p_type); // eslint-disable-line no-undef + return getValue(p_ptr, p_type); }, setHeapValue: function (p_ptr, p_value, p_type) { - setValue(p_ptr, p_value, p_type); // eslint-disable-line no-undef + setValue(p_ptr, p_value, p_type); }, heapSub: function (p_heap, p_ptr, p_len) { @@ -86,7 +86,7 @@ const GodotRuntime = { * Strings */ parseString: function (p_ptr) { - return UTF8ToString(p_ptr); // eslint-disable-line no-undef + return UTF8ToString(p_ptr); }, parseStringArray: function (p_ptr, p_size) { @@ -99,13 +99,13 @@ const GodotRuntime = { }, strlen: function (p_str) { - return lengthBytesUTF8(p_str); // eslint-disable-line no-undef + return lengthBytesUTF8(p_str); }, allocString: function (p_str) { const length = GodotRuntime.strlen(p_str) + 1; const c_str = GodotRuntime.malloc(length); - stringToUTF8(p_str, c_str, length); // eslint-disable-line no-undef + stringToUTF8(p_str, c_str, length); return c_str; }, @@ -126,7 +126,7 @@ const GodotRuntime = { }, stringToHeap: function (p_str, p_ptr, p_len) { - return stringToUTF8Array(p_str, HEAP8, p_ptr, p_len); // eslint-disable-line no-undef + return stringToUTF8Array(p_str, HEAP8, p_ptr, p_len); }, }, }; |