Skip to content

Commit

Permalink
ASTにobjの中身が表示されるように (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
takejohn authored Oct 14, 2024
1 parent e7e2651 commit 7a96bcf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion playground/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,12 @@
<div id="ast" class="container">
<header>AST</header>
<div>
<pre>{{ JSON.stringify(ast, null, '\t') }}</pre>
<pre>{{ JSON.stringify(ast, (_key, value) => {
if (value instanceof Map) {
return Object.fromEntries(value);
}
return value;
}, '\t') }}</pre>
</div>
</div>
<div id="bin" class="container">
Expand Down

0 comments on commit 7a96bcf

Please sign in to comment.