Skip to content

Commit

Permalink
fix md lint
Browse files Browse the repository at this point in the history
  • Loading branch information
justjavac committed Jun 13, 2019
1 parent 4cdcb41 commit 9186560
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/blog/v8-release-72.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,15 +127,14 @@ lf.format(['Frank', 'Christine', 'Flora', 'Harrison']);
// Old behavior:
JSON.stringify('\uD800');
// → '"�"'
```

V8 现在实现了一个 [stage 3 提案](/features/well-formed-json-stringify),该提议改变了 `JSON.stringify` 输出含有单独代理(Lone surrogates)的转义序列的方式,使其输出有效的 Unicode(并以 UTF-8 表示):

// New behavior:
JSON.stringify('\uD800');
// → '"\\ud800"'
```

V8 现在实现了一个 [stage 3 提案](/features/well-formed-json-stringify),该提议改变了 `JSON.stringify` 输出含有单独代理(Lone surrogates)的转义序列的方式,使其输出有效的 Unicode(并以 UTF-8 表示):

请注意,`JSON.parse(stringified)` 的运行结果仍然和以前一样。

### Module namespace exports {#module-namespace-exports}
Expand Down

0 comments on commit 9186560

Please sign in to comment.