Skip to content

Commit 33d807d

Browse files
committed
Use false / true
1 parent d50d6ca commit 33d807d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

quickjs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10124,7 +10124,7 @@ static int JS_SetGlobalVar(JSContext *ctx, JSAtom prop, JSValue val,
1012410124
return JS_SetPropertyInternal(ctx, ctx->global_obj, prop, val, flags);
1012510125
}
1012610126

10127-
/* return -1, FALSE or TRUE */
10127+
/* return -1, false or true */
1012810128
static int JS_DeleteGlobalVar(JSContext *ctx, JSAtom prop)
1012910129
{
1013010130
JSObject *p;
@@ -10136,14 +10136,14 @@ static int JS_DeleteGlobalVar(JSContext *ctx, JSAtom prop)
1013610136
p = JS_VALUE_GET_OBJ(ctx->global_var_obj);
1013710137
prs = find_own_property(&pr, p, prop);
1013810138
if (prs)
10139-
return FALSE; /* lexical variables cannot be deleted */
10139+
return false; /* lexical variables cannot be deleted */
1014010140
ret = JS_HasProperty(ctx, ctx->global_obj, prop);
1014110141
if (ret < 0)
1014210142
return -1;
1014310143
if (ret) {
1014410144
return JS_DeleteProperty(ctx, ctx->global_obj, prop, 0);
1014510145
} else {
10146-
return TRUE;
10146+
return true;
1014710147
}
1014810148
}
1014910149

0 commit comments

Comments
 (0)