cesanta / mjs

Embedded JavaScript engine for C/C++
https://mongoose-os.com
Other
1.91k stars 176 forks source link

.toString() is not implemented ? #154

Open kanstantsin-bucha opened 4 years ago

kanstantsin-bucha commented 4 years ago

it looks like number.toString(), 'string' + 1, and other conversions number to string is not working.

checked

.toString() String() Template Strings Concatenating an Empty String

Can someone provide a solution to convert number to string? Give me a hint please.

tozwierz commented 3 years ago

Use JSON.stringify(number)