{"action":"created","comment":{"url":"https://api.github.com/repos/ruanyf/es6tutorial/pulls/comments/72104192","id":72104192,"diff_hunk":"@@ -359,7 +359,7 @@ function f() { console.log('I am outside!'); }\n \n 注意，上面三条规则只对ES6的浏览器实现有效，其他环境的实现不用遵守，还是将块级作用域的函数声明当作`let`处理。\n \n-前面那段代码，在Chrome环境下运行会报错。\n+前面那段代码，在老版本的Chrome环境下运行会报错。","path":"docs/let.md","position":11,"original_position":14,"commit_id":"e3a8d9f863533695f6df8d0488266d10fc749f21","original_commit_id":"e3a8d9f863533695f6df8d0488266d10fc749f21","user":{"login":"S1ngS1ng","id":13592559,"avatar_url":"https://avatars.githubusercontent.com/u/13592559?v=3","gravatar_id":"","url":"https://api.github.com/users/S1ngS1ng","html_url":"https://github.com/S1ngS1ng","followers_url":"https://api.github.com/users/S1ngS1ng/followers","following_url":"https://api.github.com/users/S1ngS1ng/following{/other_user}","gists_url":"https://api.github.com/users/S1ngS1ng/gists{/gist_id}","starred_url":"https://api.github.com/users/S1ngS1ng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/S1ngS1ng/subscriptions","organizations_url":"https://api.github.com/users/S1ngS1ng/orgs","repos_url":"https://api.github.com/users/S1ngS1ng/repos","events_url":"https://api.github.com/users/S1ngS1ng/events{/privacy}","received_events_url":"https://api.github.com/users/S1ngS1ng/received_events","type":"User","site_admin":false},"body":"因为你的`'use strict';` 是输入之后直接执行了，双引号那个就是来自输出结果，这样肯定不行的。52.0这么做也会出错。\r\n![image](https://cloud.githubusercontent.com/assets/13592559/17110087/bfb0c1ce-5260-11e6-8e1d-1d7ed1536d1d.png)\r\n\r\n你把他们放在一起再试试：\r\n![image](https://cloud.githubusercontent.com/assets/13592559/17110097/d07dadaa-5260-11e6-8e63-f5324d509c57.png)\r\n\r\n","created_at":"2016-07-25T17:11:38Z","updated_at":"2016-07-25T17:11:38Z","html_url":"https://github.com/ruanyf/es6tutorial/pull/238#discussion_r72104192","pull_request_url":"https://api.github.com/repos/ruanyf/es6tutorial/pulls/238","_links":{"self":{"href":"https://api.github.com/repos/ruanyf/es6tutorial/pulls/comments/72104192"},"html":{"href":"https://github.com/ruanyf/es6tutorial/pull/238#discussion_r72104192"},"pull_request":{"href":"https://api.github.com/repos/ruanyf/es6tutorial/pulls/238"}}},"pull_request":{"url":"https://api.github.com/repos/ruanyf/es6tutorial/pulls/238","id":78648660,"html_url":"https://github.com/ruanyf/es6tutorial/pull/238","diff_url":"https://github.com/ruanyf/es6tutorial/pull/238.diff","patch_url":"https://github.com/ruanyf/es6tutorial/pull/238.patch","issue_url":"https://api.github.com/repos/ruanyf/es6tutorial/issues/238","number":238,"state":"open","locked":false,"title":"修改ES6对‘变量提升’定义的相关措辞","user":{"login":"jacty","id":4190959,"avatar_url":"https://avatars.githubusercontent.com/u/4190959?v=3","gravatar_id":"","url":"https://api.github.com/users/jacty","html_url":"https://github.com/jacty","followers_url":"https://api.github.com/users/jacty/followers","following_url":"https://api.github.com/users/jacty/following{/other_user}","gists_url":"https://api.github.com/users/jacty/gists{/gist_id}","starred_url":"https://api.github.com/users/jacty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacty/subscriptions","organizations_url":"https://api.github.com/users/jacty/orgs","repos_url":"https://api.github.com/users/jacty/repos","events_url":"https://api.github.com/users/jacty/events{/privacy}","received_events_url":"https://api.github.com/users/jacty/received_events","type":"User","site_admin":false},"body":"因为ES6对变量提升的定义并不影响var定义变量导致的变量提升行为。所以，当以ES6环境下，使用var定义变量，则变量提升还是存在的。故而，我认为ES6只是对变量提升做了一些修订，并不是取消或者说不存在变量提升了。若为取消，我认为应该在ES6环境下，设定var定义的变量也不存在变量提升。","created_at":"2016-07-25T09:12:16Z","updated_at":"2016-07-25T17:11:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"891b6464cf4034bcc2cee1ab96edb7fea30e4777","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ruanyf/es6tutorial/pulls/238/commits","review_comments_url":"https://api.github.com/repos/ruanyf/es6tutorial/pulls/238/comments","review_comment_url":"https://api.github.com/repos/ruanyf/es6tutorial/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ruanyf/es6tutorial/issues/238/comments","statuses_url":"https://api.github.com/repos/ruanyf/es6tutorial/statuses/e3a8d9f863533695f6df8d0488266d10fc749f21","head":{"label":"jacty:gh-pages","ref":"gh-pages","sha":"e3a8d9f863533695f6df8d0488266d10fc749f21","user":{"login":"jacty","id":4190959,"avatar_url":"https://avatars.githubusercontent.com/u/4190959?v=3","gravatar_id":"","url":"https://api.github.com/users/jacty","html_url":"https://github.com/jacty","followers_url":"https://api.github.com/users/jacty/followers","following_url":"https://api.github.com/users/jacty/following{/other_user}","gists_url":"https://api.github.com/users/jacty/gists{/gist_id}","starred_url":"https://api.github.com/users/jacty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacty/subscriptions","organizations_url":"https://api.github.com/users/jacty/orgs","repos_url":"https://api.github.com/users/jacty/repos","events_url":"https://api.github.com/users/jacty/events{/privacy}","received_events_url":"https://api.github.com/users/jacty/received_events","type":"User","site_admin":false},"repo":{"id":63563793,"name":"es6tutorial","full_name":"jacty/es6tutorial","owner":{"login":"jacty","id":4190959,"avatar_url":"https://avatars.githubusercontent.com/u/4190959?v=3","gravatar_id":"","url":"https://api.github.com/users/jacty","html_url":"https://github.com/jacty","followers_url":"https://api.github.com/users/jacty/followers","following_url":"https://api.github.com/users/jacty/following{/other_user}","gists_url":"https://api.github.com/users/jacty/gists{/gist_id}","starred_url":"https://api.github.com/users/jacty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacty/subscriptions","organizations_url":"https://api.github.com/users/jacty/orgs","repos_url":"https://api.github.com/users/jacty/repos","events_url":"https://api.github.com/users/jacty/events{/privacy}","received_events_url":"https://api.github.com/users/jacty/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacty/es6tutorial","description":"《ECMAScript 6入门》是一本开源的JavaScript语言教程，全面介绍ECMAScript 6新增的语法特性。","fork":true,"url":"https://api.github.com/repos/jacty/es6tutorial","forks_url":"https://api.github.com/repos/jacty/es6tutorial/forks","keys_url":"https://api.github.com/repos/jacty/es6tutorial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacty/es6tutorial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacty/es6tutorial/teams","hooks_url":"https://api.github.com/repos/jacty/es6tutorial/hooks","issue_events_url":"https://api.github.com/repos/jacty/es6tutorial/issues/events{/number}","events_url":"https://api.github.com/repos/jacty/es6tutorial/events","assignees_url":"https://api.github.com/repos/jacty/es6tutorial/assignees{/user}","branches_url":"https://api.github.com/repos/jacty/es6tutorial/branches{/branch}","tags_url":"https://api.github.com/repos/jacty/es6tutorial/tags","blobs_url":"https://api.github.com/repos/jacty/es6tutorial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacty/es6tutorial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacty/es6tutorial/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacty/es6tutorial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacty/es6tutorial/statuses/{sha}","languages_url":"https://api.github.com/repos/jacty/es6tutorial/languages","stargazers_url":"https://api.github.com/repos/jacty/es6tutorial/stargazers","contributors_url":"https://api.github.com/repos/jacty/es6tutorial/contributors","subscribers_url":"https://api.github.com/repos/jacty/es6tutorial/subscribers","subscription_url":"https://api.github.com/repos/jacty/es6tutorial/subscription","commits_url":"https://api.github.com/repos/jacty/es6tutorial/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacty/es6tutorial/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacty/es6tutorial/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacty/es6tutorial/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacty/es6tutorial/contents/{+path}","compare_url":"https://api.github.com/repos/jacty/es6tutorial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacty/es6tutorial/merges","archive_url":"https://api.github.com/repos/jacty/es6tutorial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacty/es6tutorial/downloads","issues_url":"https://api.github.com/repos/jacty/es6tutorial/issues{/number}","pulls_url":"https://api.github.com/repos/jacty/es6tutorial/pulls{/number}","milestones_url":"https://api.github.com/repos/jacty/es6tutorial/milestones{/number}","notifications_url":"https://api.github.com/repos/jacty/es6tutorial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacty/es6tutorial/labels{/name}","releases_url":"https://api.github.com/repos/jacty/es6tutorial/releases{/id}","deployments_url":"https://api.github.com/repos/jacty/es6tutorial/deployments","created_at":"2016-07-18T02:23:24Z","updated_at":"2016-07-18T02:23:26Z","pushed_at":"2016-07-25T10:28:53Z","git_url":"git://github.com/jacty/es6tutorial.git","ssh_url":"git@github.com:jacty/es6tutorial.git","clone_url":"https://github.com/jacty/es6tutorial.git","svn_url":"https://github.com/jacty/es6tutorial","homepage":"http://es6.ruanyifeng.com/","size":2906,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"ruanyf:gh-pages","ref":"gh-pages","sha":"e18aa221dae03f90011592c4d5ce4b1ef7c6e62a","user":{"login":"ruanyf","id":905434,"avatar_url":"https://avatars.githubusercontent.com/u/905434?v=3","gravatar_id":"","url":"https://api.github.com/users/ruanyf","html_url":"https://github.com/ruanyf","followers_url":"https://api.github.com/users/ruanyf/followers","following_url":"https://api.github.com/users/ruanyf/following{/other_user}","gists_url":"https://api.github.com/users/ruanyf/gists{/gist_id}","starred_url":"https://api.github.com/users/ruanyf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruanyf/subscriptions","organizations_url":"https://api.github.com/users/ruanyf/orgs","repos_url":"https://api.github.com/users/ruanyf/repos","events_url":"https://api.github.com/users/ruanyf/events{/privacy}","received_events_url":"https://api.github.com/users/ruanyf/received_events","type":"User","site_admin":false},"repo":{"id":18964487,"name":"es6tutorial","full_name":"ruanyf/es6tutorial","owner":{"login":"ruanyf","id":905434,"avatar_url":"https://avatars.githubusercontent.com/u/905434?v=3","gravatar_id":"","url":"https://api.github.com/users/ruanyf","html_url":"https://github.com/ruanyf","followers_url":"https://api.github.com/users/ruanyf/followers","following_url":"https://api.github.com/users/ruanyf/following{/other_user}","gists_url":"https://api.github.com/users/ruanyf/gists{/gist_id}","starred_url":"https://api.github.com/users/ruanyf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruanyf/subscriptions","organizations_url":"https://api.github.com/users/ruanyf/orgs","repos_url":"https://api.github.com/users/ruanyf/repos","events_url":"https://api.github.com/users/ruanyf/events{/privacy}","received_events_url":"https://api.github.com/users/ruanyf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ruanyf/es6tutorial","description":"《ECMAScript 6入门》是一本开源的JavaScript语言教程，全面介绍ECMAScript 6新增的语法特性。","fork":false,"url":"https://api.github.com/repos/ruanyf/es6tutorial","forks_url":"https://api.github.com/repos/ruanyf/es6tutorial/forks","keys_url":"https://api.github.com/repos/ruanyf/es6tutorial/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ruanyf/es6tutorial/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ruanyf/es6tutorial/teams","hooks_url":"https://api.github.com/repos/ruanyf/es6tutorial/hooks","issue_events_url":"https://api.github.com/repos/ruanyf/es6tutorial/issues/events{/number}","events_url":"https://api.github.com/repos/ruanyf/es6tutorial/events","assignees_url":"https://api.github.com/repos/ruanyf/es6tutorial/assignees{/user}","branches_url":"https://api.github.com/repos/ruanyf/es6tutorial/branches{/branch}","tags_url":"https://api.github.com/repos/ruanyf/es6tutorial/tags","blobs_url":"https://api.github.com/repos/ruanyf/es6tutorial/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ruanyf/es6tutorial/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ruanyf/es6tutorial/git/refs{/sha}","trees_url":"https://api.github.com/repos/ruanyf/es6tutorial/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ruanyf/es6tutorial/statuses/{sha}","languages_url":"https://api.github.com/repos/ruanyf/es6tutorial/languages","stargazers_url":"https://api.github.com/repos/ruanyf/es6tutorial/stargazers","contributors_url":"https://api.github.com/repos/ruanyf/es6tutorial/contributors","subscribers_url":"https://api.github.com/repos/ruanyf/es6tutorial/subscribers","subscription_url":"https://api.github.com/repos/ruanyf/es6tutorial/subscription","commits_url":"https://api.github.com/repos/ruanyf/es6tutorial/commits{/sha}","git_commits_url":"https://api.github.com/repos/ruanyf/es6tutorial/git/commits{/sha}","comments_url":"https://api.github.com/repos/ruanyf/es6tutorial/comments{/number}","issue_comment_url":"https://api.github.com/repos/ruanyf/es6tutorial/issues/comments{/number}","contents_url":"https://api.github.com/repos/ruanyf/es6tutorial/contents/{+path}","compare_url":"https://api.github.com/repos/ruanyf/es6tutorial/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ruanyf/es6tutorial/merges","archive_url":"https://api.github.com/repos/ruanyf/es6tutorial/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ruanyf/es6tutorial/downloads","issues_url":"https://api.github.com/repos/ruanyf/es6tutorial/issues{/number}","pulls_url":"https://api.github.com/repos/ruanyf/es6tutorial/pulls{/number}","milestones_url":"https://api.github.com/repos/ruanyf/es6tutorial/milestones{/number}","notifications_url":"https://api.github.com/repos/ruanyf/es6tutorial/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ruanyf/es6tutorial/labels{/name}","releases_url":"https://api.github.com/repos/ruanyf/es6tutorial/releases{/id}","deployments_url":"https://api.github.com/repos/ruanyf/es6tutorial/deployments","created_at":"2014-04-20T13:06:28Z","updated_at":"2016-07-25T15:50:22Z","pushed_at":"2016-07-25T10:28:55Z","git_url":"git://github.com/ruanyf/es6tutorial.git","ssh_url":"git@github.com:ruanyf/es6tutorial.git","clone_url":"https://github.com/ruanyf/es6tutorial.git","svn_url":"https://github.com/ruanyf/es6tutorial","homepage":"http://es6.ruanyifeng.com/","size":3282,"stargazers_count":4004,"watchers_count":4004,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1623,"mirror_url":null,"open_issues_count":1,"forks":1623,"open_issues":1,"watchers":4004,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/ruanyf/es6tutorial/pulls/238"},"html":{"href":"https://github.com/ruanyf/es6tutorial/pull/238"},"issue":{"href":"https://api.github.com/repos/ruanyf/es6tutorial/issues/238"},"comments":{"href":"https://api.github.com/repos/ruanyf/es6tutorial/issues/238/comments"},"review_comments":{"href":"https://api.github.com/repos/ruanyf/es6tutorial/pulls/238/comments"},"review_comment":{"href":"https://api.github.com/repos/ruanyf/es6tutorial/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ruanyf/es6tutorial/pulls/238/commits"},"statuses":{"href":"https://api.github.com/repos/ruanyf/es6tutorial/statuses/e3a8d9f863533695f6df8d0488266d10fc749f21"}}}}
{"actor":{"display_login":"S1ngS1ng"}}