File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/runtime/node/internal/util Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,23 +11,23 @@ export const isArgumentsObject = /*@__PURE__*/ notImplemented<
1111> ( "util.types.isArgumentsObject" ) ;
1212
1313export const isBigIntObject = ( val : any ) : val is bigint =>
14- val instanceof BigInt ;
14+ typeof val === "bigint" ;
1515
1616export const isBooleanObject : typeof nodeUtilTypes . isBooleanObject = (
1717 val ,
18- ) : val is boolean => val instanceof Boolean ;
18+ ) : val is boolean => typeof val === "boolean" ;
1919
2020export const isNumberObject : typeof nodeUtilTypes . isNumberObject = (
2121 val ,
22- ) : val is number => val instanceof Number ;
22+ ) : val is number => typeof val === "number" ;
2323
2424export const isStringObject : typeof nodeUtilTypes . isStringObject = (
2525 val ,
26- ) : val is string => val instanceof String ;
26+ ) : val is string => typeof val === "string" ;
2727
2828export const isSymbolObject : typeof nodeUtilTypes . isSymbolObject = (
2929 val ,
30- ) : val is symbol => val instanceof Symbol ;
30+ ) : val is symbol => typeof val === "symbol" ;
3131
3232export const isNativeError = /*@__PURE__ */ notImplemented <
3333 typeof nodeUtilTypes . isNativeError
You can’t perform that action at this time.
0 commit comments