Skip to content

Commit 8a31ecc

Browse files
committed
Directly stringify the parsing result, so functions that return arrays work correctly.
1 parent 0bdafab commit 8a31ecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@
6161
var sheet = parseAStylesheet(tokenlist);
6262
console.log(sheet);
6363
var tree = document.querySelector('#tree');
64-
tree.value = sheet.toString(' ');
64+
tree.value = JSON.stringify(sheet, null, " ");
6565
}
6666
</script>

0 commit comments

Comments
 (0)