@@ -62,7 +62,7 @@ JSValue JS_Ext_NewBool(JSContext *ctx, uint8_t val)
6262 return JS_NewBool (ctx , val );
6363}
6464
65- JS_BOOL JS_Ext_IsNan (JSValue v )
65+ bool JS_Ext_IsNan (JSValue v )
6666{
6767 return JS_VALUE_IS_NAN (v );
6868}
@@ -92,12 +92,12 @@ int JS_Ext_GetNormTag(JSValue v)
9292 return JS_VALUE_GET_NORM_TAG (v );
9393}
9494
95- JS_BOOL JS_Ext_IsNumber (JSValue v )
95+ bool JS_Ext_IsNumber (JSValue v )
9696{
9797 return JS_IsNumber (v );
9898}
9999
100- JS_BOOL JS_Ext_IsBigInt (JSContext * ctx , JSValue v )
100+ bool JS_Ext_IsBigInt (JSContext * ctx , JSValue v )
101101{
102102 return JS_IsBigInt (ctx , v );
103103}
@@ -110,42 +110,42 @@ JS_BOOL JS_Ext_IsBigInt(JSContext *ctx, JSValue v)
110110// return JS_IsBigDecimal(v);
111111// }
112112
113- JS_BOOL JS_Ext_IsBool (JSValue v )
113+ bool JS_Ext_IsBool (JSValue v )
114114{
115115 return JS_IsBool (v );
116116}
117117
118- JS_BOOL JS_Ext_IsNull (JSValue v )
118+ bool JS_Ext_IsNull (JSValue v )
119119{
120120 return JS_IsNull (v );
121121}
122122
123- JS_BOOL JS_Ext_IsUndefined (JSValue v )
123+ bool JS_Ext_IsUndefined (JSValue v )
124124{
125125 return JS_IsUndefined (v );
126126}
127127
128- JS_BOOL JS_Ext_IsException (JSValue v )
128+ bool JS_Ext_IsException (JSValue v )
129129{
130130 return JS_IsException (v );
131131}
132132
133- JS_BOOL JS_Ext_IsUninitialized (JSValue v )
133+ bool JS_Ext_IsUninitialized (JSValue v )
134134{
135135 return JS_IsUninitialized (v );
136136}
137137
138- JS_BOOL JS_Ext_IsString (JSValue v )
138+ bool JS_Ext_IsString (JSValue v )
139139{
140140 return JS_IsString (v );
141141}
142142
143- JS_BOOL JS_Ext_IsSymbol (JSValue v )
143+ bool JS_Ext_IsSymbol (JSValue v )
144144{
145145 return JS_IsSymbol (v );
146146}
147147
148- JS_BOOL JS_Ext_IsObject (JSValue v )
148+ bool JS_Ext_IsObject (JSValue v )
149149{
150150 return JS_IsObject (v );
151151}
@@ -173,7 +173,7 @@ JSValue JS_Ext_NewCFunctionMagic(JSContext *ctx,
173173 return JS_NewCFunctionMagic (ctx , func , name , length , cproto , magic );
174174}
175175
176- JS_BOOL JS_Ext_IsPromise (JSContext * ctx , JSValue val )
176+ bool JS_Ext_IsPromise (JSContext * ctx , JSValue val )
177177{
178178 void * p = JS_GetOpaque (val , JS_CLASS_PROMISE );
179179 return p != NULL ;
0 commit comments