{"action":"created","comment":{"url":"https://api.github.com/repos/iojs/website/pulls/comments/24643363","id":24643363,"diff_hunk":"@@ -1,20 +1,20 @@\n # io.js 运行 ES6\n \n-io.js 是基于 [V8](https://code.google.com/p/v8/) 引擎的现代版本构建的。通过持续更进最新版的 V8 引擎，我们确保可以及时为开发者带来最新的 [JavaScript ECMA-262 规范](http://www.ecma-international.org/publications/standards/Ecma-262.htm) 语言特性，同时也会有性能和稳定性的提升。\n+io.js 是基于 [V8](https://code.google.com/p/v8/) 引擎的较新版本构建的。通过持续跟进最新版的 V8 引擎，我们可以保证及时地为开发者带来最新的 [JavaScript ECMA-262 规范](http://www.ecma-international.org/publications/standards/Ecma-262.htm) 中的语言特性，同时也能得到性能和稳定性的提升。\n \n-io.js 1.2.0 集成了 V8 4.1.0.14 版本，其中包含的 ES6 特性远超出 joyent/node@0.12.x 集成的 3.26.33 版本。\n+io.js 1.2.0 集成了 V8 4.1.0.14 版本，其中包含的 ES6 特性远超 joyent/node@0.12.x 集成的 3.26.33 版本所包含的。\n \n ## 干掉 --harmony\n \n-在 joyent/node@0.12.x (V8 3.26) 版本中，`--harmony` 运行时参数会一并开启所有 **已完成**，**待完成** 和 **修订中** 的 ES6 的一大堆特性 (除了 `typeof` 的非标准/不确定的特性需要通过 `--harmony-typeof` 开启之外)。这就意味着一些真正鸡肋甚至废弃的特性譬如 [proxies](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) 都会像 [generators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*) 那样开放给开发者，它们很偏门甚至缺少相关资料。因此，最好的做法要么通过加特定参数(例如 `--harmony-generators`) 开启稳定的特性，要么直接开启全部但严格地使用特定部分特性。\n+在 joyent/node@0.12.x (V8 3.26) 版本中，`--harmony` 运行时参数会一并开启所有 **已完成**，**待完成** 和 **修订中** 的 ES6 的一大堆特性 (除了 `typeof` 的非标准/不确定的特性需要通过 `--harmony-typeof` 开启之外)。这就意味着一些真正鸡肋甚至废弃的特性，譬如 [proxies](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) 都会像 [generators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*) 那样开放给开发者，它们很偏门，甚至缺少相关资料。因此，最好的做法是，要么通过加特定参数(例如 `--harmony-generators`) 开启稳定的特性，要么直接开启全部但严格地使用特定部分特性。\n \n-使用 io.js@1.x (V8 4.1+)，这些烦恼就通通没有了。所有的特性在逻辑上被分为 **已完成**，**待完成** 和 **修订中** 三部分：\n+使用 io.js@1.x (V8 4.1+)，妈妈再也不担心我了。所有的特性在逻辑上被分为 **已完成**，**待完成** 和 **修订中** 三部分：\n \n-*   所有 **已完成** 的特性，都是在 V8 中确信已经稳定的，例如 [generators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*)，[模板](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings)，[新增的字符串方法](https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/ECMAScript_6_support_in_Mozilla#Additions_to_the_String_object)等都会在 **io.js 中默认开启** 并且**不需要**加任何运行时参数。\n-*   再就是 **待完成** 的特性都是基本完成但是却没有经过充分测试或者更新为最新的标准，因此 V8 团队认为这些是不稳定的 (可能有些坑没被覆盖到)。相当于 [generators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*) 在 3.26版本中的状态。我们提供了类似 \"自己承担使用风险\" 的功能，需要加入运行时参数：`--es_staging` (或者它的别名，`--harmony`)。\n-*   最后，所有 **修订中** 的特性可以通过特有的参数开启 (例如 `--harmony_arrow_functions`)，当然不建议这么做除非你是用于测试。\n+*   所有 **已完成** 的特性，都是在 V8 中被认为已经稳定的，例如 [generators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*)，[模板](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/template_strings)，[新增的字符串方法](https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/ECMAScript_6_support_in_Mozilla#Additions_to_the_String_object)等都会在 **io.js 中默认开启** ，并且**不需要**加任何运行时参数。\n+*   再就是 **待完成** 的特性。**待完成** 的特性都是基本完成但未经充分测试的，或者更新为最新的特性，因此 V8 团队认为这些是不稳定的 (可能有些坑没被覆盖到)，就像 [generators](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*) 在 3.26版本中的状态。我们提供了类似 \"自担风险\" 的功能。你需要加入参数：`--es_staging` (或者别名，`--harmony`)。","path":"content/cn/es6.md","position":21,"original_position":21,"commit_id":"400d175083390aac2d3222669cdc8babe6a2e945","original_commit_id":"400d175083390aac2d3222669cdc8babe6a2e945","user":{"login":"laosb","id":2545261,"avatar_url":"https://avatars.githubusercontent.com/u/2545261?v=3","gravatar_id":"","url":"https://api.github.com/users/laosb","html_url":"https://github.com/laosb","followers_url":"https://api.github.com/users/laosb/followers","following_url":"https://api.github.com/users/laosb/following{/other_user}","gists_url":"https://api.github.com/users/laosb/gists{/gist_id}","starred_url":"https://api.github.com/users/laosb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laosb/subscriptions","organizations_url":"https://api.github.com/users/laosb/orgs","repos_url":"https://api.github.com/users/laosb/repos","events_url":"https://api.github.com/users/laosb/events{/privacy}","received_events_url":"https://api.github.com/users/laosb/received_events","type":"User","site_admin":false},"body":"@xudafeng 没有必要每个词都要翻译进去，显得很累赘。这个翻译原本的一个特点就是长句子特别多，特别累赘费解。","created_at":"2015-02-13T04:06:06Z","updated_at":"2015-02-13T04:06:06Z","html_url":"https://github.com/iojs/website/pull/172#discussion_r24643363","pull_request_url":"https://api.github.com/repos/iojs/website/pulls/172","_links":{"self":{"href":"https://api.github.com/repos/iojs/website/pulls/comments/24643363"},"html":{"href":"https://github.com/iojs/website/pull/172#discussion_r24643363"},"pull_request":{"href":"https://api.github.com/repos/iojs/website/pulls/172"}}},"pull_request":{"url":"https://api.github.com/repos/iojs/website/pulls/172","id":29172927,"html_url":"https://github.com/iojs/website/pull/172","diff_url":"https://github.com/iojs/website/pull/172.diff","patch_url":"https://github.com/iojs/website/pull/172.patch","issue_url":"https://api.github.com/repos/iojs/website/issues/172","number":172,"state":"open","locked":false,"title":"Made the Chinese translation reads better.","user":{"login":"laosb","id":2545261,"avatar_url":"https://avatars.githubusercontent.com/u/2545261?v=3","gravatar_id":"","url":"https://api.github.com/users/laosb","html_url":"https://github.com/laosb","followers_url":"https://api.github.com/users/laosb/followers","following_url":"https://api.github.com/users/laosb/following{/other_user}","gists_url":"https://api.github.com/users/laosb/gists{/gist_id}","starred_url":"https://api.github.com/users/laosb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laosb/subscriptions","organizations_url":"https://api.github.com/users/laosb/orgs","repos_url":"https://api.github.com/users/laosb/repos","events_url":"https://api.github.com/users/laosb/events{/privacy}","received_events_url":"https://api.github.com/users/laosb/received_events","type":"User","site_admin":false},"body":"纠正了一些语法错误，调整句子长度，让它读着不那么别扭，极少量的网络用语乱入。\r\nFixed some grammar mistakes, adjusted the length of sentences and added few fashionable sentences to make it enjoyable.","created_at":"2015-02-12T11:55:02Z","updated_at":"2015-02-13T04:06:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"78eff4c60d2648a241ab4af830aaeb4e9a40a431","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/iojs/website/pulls/172/commits","review_comments_url":"https://api.github.com/repos/iojs/website/pulls/172/comments","review_comment_url":"https://api.github.com/repos/iojs/website/pulls/comments/{number}","comments_url":"https://api.github.com/repos/iojs/website/issues/172/comments","statuses_url":"https://api.github.com/repos/iojs/website/statuses/400d175083390aac2d3222669cdc8babe6a2e945","head":{"label":"laosb:patch-1","ref":"patch-1","sha":"400d175083390aac2d3222669cdc8babe6a2e945","user":{"login":"laosb","id":2545261,"avatar_url":"https://avatars.githubusercontent.com/u/2545261?v=3","gravatar_id":"","url":"https://api.github.com/users/laosb","html_url":"https://github.com/laosb","followers_url":"https://api.github.com/users/laosb/followers","following_url":"https://api.github.com/users/laosb/following{/other_user}","gists_url":"https://api.github.com/users/laosb/gists{/gist_id}","starred_url":"https://api.github.com/users/laosb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laosb/subscriptions","organizations_url":"https://api.github.com/users/laosb/orgs","repos_url":"https://api.github.com/users/laosb/repos","events_url":"https://api.github.com/users/laosb/events{/privacy}","received_events_url":"https://api.github.com/users/laosb/received_events","type":"User","site_admin":false},"repo":{"id":28529258,"name":"iojs.github.io","full_name":"laosb/iojs.github.io","owner":{"login":"laosb","id":2545261,"avatar_url":"https://avatars.githubusercontent.com/u/2545261?v=3","gravatar_id":"","url":"https://api.github.com/users/laosb","html_url":"https://github.com/laosb","followers_url":"https://api.github.com/users/laosb/followers","following_url":"https://api.github.com/users/laosb/following{/other_user}","gists_url":"https://api.github.com/users/laosb/gists{/gist_id}","starred_url":"https://api.github.com/users/laosb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laosb/subscriptions","organizations_url":"https://api.github.com/users/laosb/orgs","repos_url":"https://api.github.com/users/laosb/repos","events_url":"https://api.github.com/users/laosb/events{/privacy}","received_events_url":"https://api.github.com/users/laosb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/laosb/iojs.github.io","description":"Website","fork":true,"url":"https://api.github.com/repos/laosb/iojs.github.io","forks_url":"https://api.github.com/repos/laosb/iojs.github.io/forks","keys_url":"https://api.github.com/repos/laosb/iojs.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/laosb/iojs.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/laosb/iojs.github.io/teams","hooks_url":"https://api.github.com/repos/laosb/iojs.github.io/hooks","issue_events_url":"https://api.github.com/repos/laosb/iojs.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/laosb/iojs.github.io/events","assignees_url":"https://api.github.com/repos/laosb/iojs.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/laosb/iojs.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/laosb/iojs.github.io/tags","blobs_url":"https://api.github.com/repos/laosb/iojs.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/laosb/iojs.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/laosb/iojs.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/laosb/iojs.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/laosb/iojs.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/laosb/iojs.github.io/languages","stargazers_url":"https://api.github.com/repos/laosb/iojs.github.io/stargazers","contributors_url":"https://api.github.com/repos/laosb/iojs.github.io/contributors","subscribers_url":"https://api.github.com/repos/laosb/iojs.github.io/subscribers","subscription_url":"https://api.github.com/repos/laosb/iojs.github.io/subscription","commits_url":"https://api.github.com/repos/laosb/iojs.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/laosb/iojs.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/laosb/iojs.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/laosb/iojs.github.io/issues/comments/{number}","contents_url":"https://api.github.com/repos/laosb/iojs.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/laosb/iojs.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/laosb/iojs.github.io/merges","archive_url":"https://api.github.com/repos/laosb/iojs.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/laosb/iojs.github.io/downloads","issues_url":"https://api.github.com/repos/laosb/iojs.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/laosb/iojs.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/laosb/iojs.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/laosb/iojs.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/laosb/iojs.github.io/labels{/name}","releases_url":"https://api.github.com/repos/laosb/iojs.github.io/releases{/id}","created_at":"2014-12-27T05:18:58Z","updated_at":"2015-01-15T04:22:45Z","pushed_at":"2015-02-12T12:19:36Z","git_url":"git://github.com/laosb/iojs.github.io.git","ssh_url":"git@github.com:laosb/iojs.github.io.git","clone_url":"https://github.com/laosb/iojs.github.io.git","svn_url":"https://github.com/laosb/iojs.github.io","homepage":null,"size":402,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"iojs:master","ref":"master","sha":"40e12c5713826b28d50ca469cd418ed9b9e0ec39","user":{"login":"iojs","id":9950313,"avatar_url":"https://avatars.githubusercontent.com/u/9950313?v=3","gravatar_id":"","url":"https://api.github.com/users/iojs","html_url":"https://github.com/iojs","followers_url":"https://api.github.com/users/iojs/followers","following_url":"https://api.github.com/users/iojs/following{/other_user}","gists_url":"https://api.github.com/users/iojs/gists{/gist_id}","starred_url":"https://api.github.com/users/iojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iojs/subscriptions","organizations_url":"https://api.github.com/users/iojs/orgs","repos_url":"https://api.github.com/users/iojs/repos","events_url":"https://api.github.com/users/iojs/events{/privacy}","received_events_url":"https://api.github.com/users/iojs/received_events","type":"Organization","site_admin":false},"repo":{"id":27196756,"name":"website","full_name":"iojs/website","owner":{"login":"iojs","id":9950313,"avatar_url":"https://avatars.githubusercontent.com/u/9950313?v=3","gravatar_id":"","url":"https://api.github.com/users/iojs","html_url":"https://github.com/iojs","followers_url":"https://api.github.com/users/iojs/followers","following_url":"https://api.github.com/users/iojs/following{/other_user}","gists_url":"https://api.github.com/users/iojs/gists{/gist_id}","starred_url":"https://api.github.com/users/iojs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iojs/subscriptions","organizations_url":"https://api.github.com/users/iojs/orgs","repos_url":"https://api.github.com/users/iojs/repos","events_url":"https://api.github.com/users/iojs/events{/privacy}","received_events_url":"https://api.github.com/users/iojs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iojs/website","description":"Website","fork":false,"url":"https://api.github.com/repos/iojs/website","forks_url":"https://api.github.com/repos/iojs/website/forks","keys_url":"https://api.github.com/repos/iojs/website/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iojs/website/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iojs/website/teams","hooks_url":"https://api.github.com/repos/iojs/website/hooks","issue_events_url":"https://api.github.com/repos/iojs/website/issues/events{/number}","events_url":"https://api.github.com/repos/iojs/website/events","assignees_url":"https://api.github.com/repos/iojs/website/assignees{/user}","branches_url":"https://api.github.com/repos/iojs/website/branches{/branch}","tags_url":"https://api.github.com/repos/iojs/website/tags","blobs_url":"https://api.github.com/repos/iojs/website/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iojs/website/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iojs/website/git/refs{/sha}","trees_url":"https://api.github.com/repos/iojs/website/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iojs/website/statuses/{sha}","languages_url":"https://api.github.com/repos/iojs/website/languages","stargazers_url":"https://api.github.com/repos/iojs/website/stargazers","contributors_url":"https://api.github.com/repos/iojs/website/contributors","subscribers_url":"https://api.github.com/repos/iojs/website/subscribers","subscription_url":"https://api.github.com/repos/iojs/website/subscription","commits_url":"https://api.github.com/repos/iojs/website/commits{/sha}","git_commits_url":"https://api.github.com/repos/iojs/website/git/commits{/sha}","comments_url":"https://api.github.com/repos/iojs/website/comments{/number}","issue_comment_url":"https://api.github.com/repos/iojs/website/issues/comments/{number}","contents_url":"https://api.github.com/repos/iojs/website/contents/{+path}","compare_url":"https://api.github.com/repos/iojs/website/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iojs/website/merges","archive_url":"https://api.github.com/repos/iojs/website/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iojs/website/downloads","issues_url":"https://api.github.com/repos/iojs/website/issues{/number}","pulls_url":"https://api.github.com/repos/iojs/website/pulls{/number}","milestones_url":"https://api.github.com/repos/iojs/website/milestones{/number}","notifications_url":"https://api.github.com/repos/iojs/website/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iojs/website/labels{/name}","releases_url":"https://api.github.com/repos/iojs/website/releases{/id}","created_at":"2014-11-26T21:23:00Z","updated_at":"2015-02-13T00:07:35Z","pushed_at":"2015-02-12T23:14:54Z","git_url":"git://github.com/iojs/website.git","ssh_url":"git@github.com:iojs/website.git","clone_url":"https://github.com/iojs/website.git","svn_url":"https://github.com/iojs/website","homepage":null,"size":2860,"stargazers_count":96,"watchers_count":96,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":82,"mirror_url":null,"open_issues_count":49,"forks":82,"open_issues":49,"watchers":96,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iojs/website/pulls/172"},"html":{"href":"https://github.com/iojs/website/pull/172"},"issue":{"href":"https://api.github.com/repos/iojs/website/issues/172"},"comments":{"href":"https://api.github.com/repos/iojs/website/issues/172/comments"},"review_comments":{"href":"https://api.github.com/repos/iojs/website/pulls/172/comments"},"review_comment":{"href":"https://api.github.com/repos/iojs/website/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/iojs/website/pulls/172/commits"},"statuses":{"href":"https://api.github.com/repos/iojs/website/statuses/400d175083390aac2d3222669cdc8babe6a2e945"}}}}