Skip to content

Commit

Permalink
Simplify JSAtom creation
Browse files Browse the repository at this point in the history
- use single `JS_NewAtomRT` API to create atoms with or without `ctx`
  takes a UTF-8 string and flags, optionally detects numeric atoms
- simplify `__JS_NewAtom
- add `js_realloc_rt2` with slack handling
- simplify `JS_NewAtomLen` and `JS_NewAtom̀`
- simplify `JS_NewAtomUInt32`, `JS_NewAtomInt64`, `JS_NewClass`
  • Loading branch information
chqrlie committed May 21, 2024
1 parent 1baa676 commit af96e9f
Showing 1 changed file with 168 additions and 115 deletions.
Loading

0 comments on commit af96e9f

Please sign in to comment.