all files now have an implicit empty actor, even if there is no actor statement present
This commit is contained in:
10
meson.build
10
meson.build
@@ -151,7 +151,9 @@ core = custom_target('core.zip',
|
|||||||
'cd ' + meson.project_source_root() +
|
'cd ' + meson.project_source_root() +
|
||||||
' && echo "Rebuilding core.zip" && rm -f ' + meson.current_build_dir() + '/core.zip && ' +
|
' && echo "Rebuilding core.zip" && rm -f ' + meson.current_build_dir() + '/core.zip && ' +
|
||||||
'zip -r ' + meson.current_build_dir() + '/core.zip scripts fonts icons shaders'
|
'zip -r ' + meson.current_build_dir() + '/core.zip scripts fonts icons shaders'
|
||||||
]
|
],
|
||||||
|
build_always: true,
|
||||||
|
build_by_default: true
|
||||||
)
|
)
|
||||||
|
|
||||||
prosperon_raw = executable('prosperon_raw', sources,
|
prosperon_raw = executable('prosperon_raw', sources,
|
||||||
@@ -179,7 +181,8 @@ prosperon = custom_target('prosperon',
|
|||||||
'@INPUT1@',
|
'@INPUT1@',
|
||||||
'@OUTPUT@'
|
'@OUTPUT@'
|
||||||
],
|
],
|
||||||
build_always: true
|
build_always: true,
|
||||||
|
build_by_default: true
|
||||||
)
|
)
|
||||||
|
|
||||||
prosperon_dep = declare_dependency(
|
prosperon_dep = declare_dependency(
|
||||||
@@ -194,7 +197,8 @@ copy_tests = custom_target(
|
|||||||
join_paths(meson.source_root(), 'tests'),
|
join_paths(meson.source_root(), 'tests'),
|
||||||
meson.build_root()
|
meson.build_root()
|
||||||
],
|
],
|
||||||
build_always: true
|
build_always: true,
|
||||||
|
build_by_default: true
|
||||||
)
|
)
|
||||||
|
|
||||||
tests = [
|
tests = [
|
||||||
|
|||||||
@@ -1238,10 +1238,9 @@ var script_fn = function script_fn(path) {
|
|||||||
parsed.module_fn = module_fn
|
parsed.module_fn = module_fn
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parsed.program) {
|
parsed.program ??= ""
|
||||||
var prog_script = `(function use_${module_name}() { var self = this; var $ = this.__proto__; ${parsed.program}})`
|
var prog_script = `(function use_${module_name}() { var self = this; var $ = this.__proto__; ${parsed.program}})`
|
||||||
parsed.prog_fn = js.eval(file, prog_script)
|
parsed.prog_fn = js.eval(file, prog_script)
|
||||||
}
|
|
||||||
|
|
||||||
return parsed
|
return parsed
|
||||||
}.hashify()
|
}.hashify()
|
||||||
|
|||||||
@@ -5881,8 +5881,10 @@ static const JSCFunctionListEntry js_debug_funcs[] = {
|
|||||||
JSC_SCALL(io_rm,
|
JSC_SCALL(io_rm,
|
||||||
if (!PHYSFS_delete(str)) ret = JS_ThrowReferenceError(js,"could not remove %s. %s", str, PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
|
if (!PHYSFS_delete(str)) ret = JS_ThrowReferenceError(js,"could not remove %s. %s", str, PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
|
||||||
)
|
)
|
||||||
|
|
||||||
JSC_SCALL(io_mkdir,
|
JSC_SCALL(io_mkdir,
|
||||||
if (!PHYSFS_mkdir(str)) ret = JS_ThrowReferenceError(js,"could not make directory %s. %s", str, PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));)
|
if (!PHYSFS_mkdir(str)) ret = JS_ThrowReferenceError(js,"could not make directory %s. %s", str, PHYSFS_getErrorByCode(PHYSFS_getLastErrorCode()));
|
||||||
|
)
|
||||||
|
|
||||||
JSC_SCALL(io_exists, ret = JS_NewBool(js,PHYSFS_exists(str)); )
|
JSC_SCALL(io_exists, ret = JS_NewBool(js,PHYSFS_exists(str)); )
|
||||||
|
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
os.exit(1)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user