Skip to content

Commit

Permalink
Represent null with 'None' (#1659)
Browse files Browse the repository at this point in the history
  • Loading branch information
JJtan2002 authored Apr 9, 2024
1 parent 5a47d62 commit d6c3368
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/createContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -709,11 +709,11 @@ export const importBuiltins = (context: Context, externalBuiltIns: CustomBuiltIn
defineBuiltin(context, 'is_string(val)', misc.is_string)
defineBuiltin(context, 'is_function(val)', misc.is_function)
defineBuiltin(context, 'is_boolean(val)', misc.is_boolean)
defineBuiltin(context, 'is_None(val)', misc.is_undefined)
defineBuiltin(context, 'is_None(val)', list.is_null)
defineBuiltin(context, 'parse_int(str, radix)', misc.parse_int)
defineBuiltin(context, 'char_at(str, index)', misc.char_at)
defineBuiltin(context, 'arity(f)', misc.arity)
defineBuiltin(context, 'None', undefined)
defineBuiltin(context, 'None', null)
defineBuiltin(context, 'NaN', NaN)
defineBuiltin(context, 'Infinity', Infinity)

Expand Down

0 comments on commit d6c3368

Please sign in to comment.