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:
hlaaftana
2020-04-28 20:44:52 +03:00
committed by GitHub
parent d5ed4fba3e
commit cd9af6b804
22 changed files with 852 additions and 356 deletions

View File

@@ -1,6 +1,6 @@
discard """
targets: "c js"
output: '''
@[]
true
https://example.com/test?format=jpg&name=orig##
https://example.com/test?format=jpg&name=orig##text
@@ -40,7 +40,7 @@ block t2813:
"""
var errors: seq[string] = @[]
let tree = parseHtml(newStringStream(html), "test.html", errors)
echo errors # Errors: </thead> expected,...
doAssert errors.len == 0 # Errors: </thead> expected,...
var len = tree.findAll("tr").len # len = 6
var rows: seq[XmlNode] = @[]