StringStream & more stdlib modules support for JS/NimScript (#14095)
* StringStream & more stdlib modules support for JS/NimScript * change back pegs test in line with #14134
This commit is contained in:
parent
d5ed4fba3e
commit
cd9af6b804
22 changed files with 852 additions and 356 deletions
|
|
@ -50,8 +50,14 @@
|
|||
## * `streams module <streams.html>`_
|
||||
## * `json module <json.html>`_
|
||||
|
||||
when defined(nimV2):
|
||||
{.error: """marshal module is not supported in new runtime.
|
||||
const unsupportedPlatform =
|
||||
when defined(nimV2): "new runtime"
|
||||
elif defined(js): "javascript"
|
||||
elif defined(nimscript): "nimscript"
|
||||
else: ""
|
||||
|
||||
when unsupportedPlatform != "":
|
||||
{.error: "marshal module is not supported in " & unsupportedPlatform & """.
|
||||
Please use alternative packages for serialization.
|
||||
It is possible to reimplement this module using generics and type traits.
|
||||
Please contribute new implementation.""".}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue