summaryrefslogtreecommitdiffstats
path: root/platform/web/js/libs/library_godot_runtime.js
diff options
context:
space:
mode:
authorpatwork <patwork@gmail.com>2024-05-12 04:16:02 +0200
committerpatwork <patwork@gmail.com>2024-05-22 11:32:25 +0200
commit1a89ae70eb24057c1d4b87958eae647c2b42a7ca (patch)
treebdb8927c79619697e5b34f603c8cd0e9d1d6e405 /platform/web/js/libs/library_godot_runtime.js
parent8e2141eac534f6984bb0bdbcefbd17de27ae0993 (diff)
downloadredot-engine-1a89ae70eb24057c1d4b87958eae647c2b42a7ca.tar.gz
Upgrade to eslint 9
Diffstat (limited to 'platform/web/js/libs/library_godot_runtime.js')
-rw-r--r--platform/web/js/libs/library_godot_runtime.js18
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);
},
},
};