mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-18 16:40:32 +00:00
Enter meltdown mode if ProgramMaxWorkers triggers
This commit is contained in:
parent
9c06067c84
commit
c9d7838213
2 changed files with 11 additions and 5 deletions
|
@ -741,10 +741,10 @@ FUNCTIONS
|
|||
|
||||
Turns Lua data structure into JSON string.
|
||||
|
||||
Since Lua uses tables are both hashmaps and arrays, we use a
|
||||
simple fast algorithm for telling the two apart. Tables with
|
||||
non-zero length (as reported by `#`) are encoded as arrays,
|
||||
and any non-array elements are ignored. For example:
|
||||
Since Lua tables are both hashmaps and arrays, we use a simple
|
||||
fast algorithm for telling the two apart. Tables with non-zero
|
||||
length (as reported by `#`) are encoded as arrays, and any
|
||||
non-array elements are ignored. For example:
|
||||
|
||||
>: EncodeJson({2})
|
||||
"[2]"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue