add toJson object and fromJson value

This commit is contained in:
Muki Kiboigo
2025-09-23 20:44:51 -07:00
parent 202e137d77
commit c3ad054bb3
7 changed files with 146 additions and 98 deletions

View File

@@ -22,3 +22,10 @@
testing.expectEqual(undefined, history.forward());
testing.expectEqual(undefined, history.back());
</script>
<script id=history-states>
testing.expectEqual(null, history.state)
history.pushState({}, { "abc": "def" }, '');
testing.expectEqual({ "abc": "def"}, history.state);
</script>