fix toml issue / isobject

This commit is contained in:
2026-02-17 01:19:43 -06:00
parent 400c58e5f2
commit 3c28dc2c30
5 changed files with 8 additions and 22 deletions

View File

@@ -10872,13 +10872,10 @@ static JSValue js_cell_is_number (JSContext *ctx, JSValue this_val, int argc, JS
return JS_NewBool (ctx, JS_IsNumber (argv[0]));
}
/* is_object(val) - true for non-array, non-null objects */
/* is_object(val) - true for records */
static JSValue js_cell_is_object (JSContext *ctx, JSValue this_val, int argc, JSValue *argv) {
if (argc < 1) return JS_FALSE;
JSValue val = argv[0];
if (!mist_is_gc_object (val)) return JS_FALSE;
if (JS_IsArray (val)) return JS_FALSE;
return JS_TRUE;
return JS_NewBool (ctx, mist_is_record (argv[0]));
}
/* is_stone(val) - check if value is immutable */