diff --git a/internal/engine.cm b/internal/engine.cm index 11e0da36..8ab74af1 100644 --- a/internal/engine.cm +++ b/internal/engine.cm @@ -808,7 +808,6 @@ if (!locator) stone(globalThis) var rads = use_core("math/radians") -log.console(rads) $_.clock(_ => { // Get capabilities for the main program diff --git a/meson.build b/meson.build index c102f144..31ff2435 100644 --- a/meson.build +++ b/meson.build @@ -74,7 +74,7 @@ foreach file: scripts endforeach srceng = 'source' -includes = [srceng, 'internal', 'debug', 'net', 'archive', 'math'] +includes = [srceng, 'internal', 'debug', 'net', 'archive'] foreach file : src full_path = join_paths(srceng, file) diff --git a/source/quickjs.c b/source/quickjs.c index c00e7959..9ff24398 100644 --- a/source/quickjs.c +++ b/source/quickjs.c @@ -14819,6 +14819,8 @@ static JSValue JS_CallInternal_OLD(JSContext *caller_ctx, JSValueConst func_obj, else b = JS_VALUE_GET_FLOAT64(op2); res = __JS_NewFloat64(ctx, a + b); + } else if (tag1 == JS_TAG_NULL || tag2 == JS_TAG_NULL) { + res = JS_NULL; } /* 5) anything else → throw */ else {