Skip to content

Commit 04bd6d3

Browse files
committed
Disable compile scripts to bytecode
1 parent 96da5b9 commit 04bd6d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

register_types.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ class EditorExportECMAScript : public EditorExportPlugin {
5454

5555
if (script_mode == EditorExportPreset::MODE_SCRIPT_TEXT)
5656
return;
57+
5758
String extension = p_path.get_extension();
5859
if (extension != EXT_JSCLASS && extension != EXT_JSMODULE)
5960
return;
@@ -106,14 +107,15 @@ class EditorExportECMAScript : public EditorExportPlugin {
106107
DirAccess::remove_file_or_error(tmp_path);
107108

108109
} else {
109-
110+
#if 0 // Disable compile to bytecode as it is not battle tested on all platform
110111
Error err;
111112
String code = FileAccess::get_file_as_string(p_path, &err);
112113
ERR_FAIL_COND(err != OK);
113114

114115
Vector<uint8_t> file;
115116
ERR_FAIL_COND(ECMAScriptLanguage::get_singleton()->get_main_binder()->compile_to_bytecode(code, p_path, file) != OK);
116117
add_file(p_path.get_basename() + "." + extension + "b", file, true);
118+
#endif
117119
}
118120
}
119121
};

0 commit comments

Comments
 (0)