fix toml issue / isobject
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user