null + anything = null

This commit is contained in:
2025-12-30 14:40:54 -06:00
parent 0664c11af6
commit 7ae5a0c06b
3 changed files with 3 additions and 2 deletions

View File

@@ -808,7 +808,6 @@ if (!locator)
stone(globalThis)
var rads = use_core("math/radians")
log.console(rads)
$_.clock(_ => {
// Get capabilities for the main program

View File

@@ -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)

View File

@@ -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 {