{"action":"created","comment":{"url":"https://api.github.com/repos/nodejs/node/pulls/comments/184865411","pull_request_review_id":116149200,"id":184865411,"diff_hunk":"@@ -442,6 +446,32 @@ Creating a new `vm.Script` object compiles `code` but does not run it. The\n compiled `vm.Script` can be run later multiple times. The `code` is not bound to\n any global object; rather, it is bound before each run, just for that run.\n \n+### script.createCachedData()\n+<!-- YAML\n+added: REPLACEME\n+-->\n+\n+Creates a code cache that can be used with the Script constructor's\n+`cachedData` option. Returns a Buffer. If the code cache cannot be created then","path":"doc/api/vm.md","position":21,"original_position":21,"commit_id":"b45e969fd0e4e045c50cda0c1eb11e76fb1cf37e","original_commit_id":"b45e969fd0e4e045c50cda0c1eb11e76fb1cf37e","user":{"login":"TimothyGu","id":1538624,"avatar_url":"https://avatars2.githubusercontent.com/u/1538624?v=4","gravatar_id":"","url":"https://api.github.com/users/TimothyGu","html_url":"https://github.com/TimothyGu","followers_url":"https://api.github.com/users/TimothyGu/followers","following_url":"https://api.github.com/users/TimothyGu/following{/other_user}","gists_url":"https://api.github.com/users/TimothyGu/gists{/gist_id}","starred_url":"https://api.github.com/users/TimothyGu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimothyGu/subscriptions","organizations_url":"https://api.github.com/users/TimothyGu/orgs","repos_url":"https://api.github.com/users/TimothyGu/repos","events_url":"https://api.github.com/users/TimothyGu/events{/privacy}","received_events_url":"https://api.github.com/users/TimothyGu/received_events","type":"User","site_admin":false},"body":"```markdown\r\n* Returns: {Buffer}\r\n```","created_at":"2018-04-28T21:27:42Z","updated_at":"2018-04-28T21:32:09Z","html_url":"https://github.com/nodejs/node/pull/20300#discussion_r184865411","pull_request_url":"https://api.github.com/repos/nodejs/node/pulls/20300","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/nodejs/node/pulls/comments/184865411"},"html":{"href":"https://github.com/nodejs/node/pull/20300#discussion_r184865411"},"pull_request":{"href":"https://api.github.com/repos/nodejs/node/pulls/20300"}}},"pull_request":{"url":"https://api.github.com/repos/nodejs/node/pulls/20300","id":184107705,"html_url":"https://github.com/nodejs/node/pull/20300","diff_url":"https://github.com/nodejs/node/pull/20300.diff","patch_url":"https://github.com/nodejs/node/pull/20300.patch","issue_url":"https://api.github.com/repos/nodejs/node/issues/20300","number":20300,"state":"open","locked":false,"title":"vm: add Script.createCodeCache()","user":{"login":"devsnek","id":5952481,"avatar_url":"https://avatars3.githubusercontent.com/u/5952481?v=4","gravatar_id":"","url":"https://api.github.com/users/devsnek","html_url":"https://github.com/devsnek","followers_url":"https://api.github.com/users/devsnek/followers","following_url":"https://api.github.com/users/devsnek/following{/other_user}","gists_url":"https://api.github.com/users/devsnek/gists{/gist_id}","starred_url":"https://api.github.com/users/devsnek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devsnek/subscriptions","organizations_url":"https://api.github.com/users/devsnek/orgs","repos_url":"https://api.github.com/users/devsnek/repos","events_url":"https://api.github.com/users/devsnek/events{/privacy}","received_events_url":"https://api.github.com/users/devsnek/received_events","type":"User","site_admin":false},"body":"Closes #20052\r\n\r\n/cc @nodejs/vm\r\n\r\n##### Checklist\r\n<!-- Remove items that do not apply. For completed items, change [ ] to [x]. -->\r\n\r\n- [x] `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes\r\n- [x] tests and/or benchmarks are included\r\n- [ ] documentation is changed or added\r\n- [x] commit message follows [commit guidelines](https://github.com/nodejs/node/blob/master/doc/guides/contributing/pull-requests.md#commit-message-guidelines)\r\n","created_at":"2018-04-25T17:24:22Z","updated_at":"2018-04-28T21:32:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5c81ba5a515c674e63beb99f93453b61137a9bd2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":169485478,"url":"https://api.github.com/repos/nodejs/node/labels/semver-minor","name":"semver-minor","color":"fef2c0","default":false},{"id":155436007,"url":"https://api.github.com/repos/nodejs/node/labels/vm","name":"vm","color":"bfdadc","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/nodejs/node/pulls/20300/commits","review_comments_url":"https://api.github.com/repos/nodejs/node/pulls/20300/comments","review_comment_url":"https://api.github.com/repos/nodejs/node/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nodejs/node/issues/20300/comments","statuses_url":"https://api.github.com/repos/nodejs/node/statuses/b45e969fd0e4e045c50cda0c1eb11e76fb1cf37e","head":{"label":"devsnek:feature/vm-snapshot-on-the-go-anytime-anywhere","ref":"feature/vm-snapshot-on-the-go-anytime-anywhere","sha":"b45e969fd0e4e045c50cda0c1eb11e76fb1cf37e","user":{"login":"devsnek","id":5952481,"avatar_url":"https://avatars3.githubusercontent.com/u/5952481?v=4","gravatar_id":"","url":"https://api.github.com/users/devsnek","html_url":"https://github.com/devsnek","followers_url":"https://api.github.com/users/devsnek/followers","following_url":"https://api.github.com/users/devsnek/following{/other_user}","gists_url":"https://api.github.com/users/devsnek/gists{/gist_id}","starred_url":"https://api.github.com/users/devsnek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devsnek/subscriptions","organizations_url":"https://api.github.com/users/devsnek/orgs","repos_url":"https://api.github.com/users/devsnek/repos","events_url":"https://api.github.com/users/devsnek/events{/privacy}","received_events_url":"https://api.github.com/users/devsnek/received_events","type":"User","site_admin":false},"repo":{"id":86208251,"name":"node","full_name":"devsnek/node","owner":{"login":"devsnek","id":5952481,"avatar_url":"https://avatars3.githubusercontent.com/u/5952481?v=4","gravatar_id":"","url":"https://api.github.com/users/devsnek","html_url":"https://github.com/devsnek","followers_url":"https://api.github.com/users/devsnek/followers","following_url":"https://api.github.com/users/devsnek/following{/other_user}","gists_url":"https://api.github.com/users/devsnek/gists{/gist_id}","starred_url":"https://api.github.com/users/devsnek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devsnek/subscriptions","organizations_url":"https://api.github.com/users/devsnek/orgs","repos_url":"https://api.github.com/users/devsnek/repos","events_url":"https://api.github.com/users/devsnek/events{/privacy}","received_events_url":"https://api.github.com/users/devsnek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/devsnek/node","description":"Node.js JavaScript runtime :sparkles::turtle::rocket::sparkles:","fork":true,"url":"https://api.github.com/repos/devsnek/node","forks_url":"https://api.github.com/repos/devsnek/node/forks","keys_url":"https://api.github.com/repos/devsnek/node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/devsnek/node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/devsnek/node/teams","hooks_url":"https://api.github.com/repos/devsnek/node/hooks","issue_events_url":"https://api.github.com/repos/devsnek/node/issues/events{/number}","events_url":"https://api.github.com/repos/devsnek/node/events","assignees_url":"https://api.github.com/repos/devsnek/node/assignees{/user}","branches_url":"https://api.github.com/repos/devsnek/node/branches{/branch}","tags_url":"https://api.github.com/repos/devsnek/node/tags","blobs_url":"https://api.github.com/repos/devsnek/node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/devsnek/node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/devsnek/node/git/refs{/sha}","trees_url":"https://api.github.com/repos/devsnek/node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/devsnek/node/statuses/{sha}","languages_url":"https://api.github.com/repos/devsnek/node/languages","stargazers_url":"https://api.github.com/repos/devsnek/node/stargazers","contributors_url":"https://api.github.com/repos/devsnek/node/contributors","subscribers_url":"https://api.github.com/repos/devsnek/node/subscribers","subscription_url":"https://api.github.com/repos/devsnek/node/subscription","commits_url":"https://api.github.com/repos/devsnek/node/commits{/sha}","git_commits_url":"https://api.github.com/repos/devsnek/node/git/commits{/sha}","comments_url":"https://api.github.com/repos/devsnek/node/comments{/number}","issue_comment_url":"https://api.github.com/repos/devsnek/node/issues/comments{/number}","contents_url":"https://api.github.com/repos/devsnek/node/contents/{+path}","compare_url":"https://api.github.com/repos/devsnek/node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/devsnek/node/merges","archive_url":"https://api.github.com/repos/devsnek/node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/devsnek/node/downloads","issues_url":"https://api.github.com/repos/devsnek/node/issues{/number}","pulls_url":"https://api.github.com/repos/devsnek/node/pulls{/number}","milestones_url":"https://api.github.com/repos/devsnek/node/milestones{/number}","notifications_url":"https://api.github.com/repos/devsnek/node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/devsnek/node/labels{/name}","releases_url":"https://api.github.com/repos/devsnek/node/releases{/id}","deployments_url":"https://api.github.com/repos/devsnek/node/deployments","created_at":"2017-03-26T04:48:23Z","updated_at":"2018-04-22T22:11:37Z","pushed_at":"2018-04-28T21:18:20Z","git_url":"git://github.com/devsnek/node.git","ssh_url":"git@github.com:devsnek/node.git","clone_url":"https://github.com/devsnek/node.git","svn_url":"https://github.com/devsnek/node","homepage":"https://nodejs.org","size":326289,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nodejs:master","ref":"master","sha":"e797d5babd119900034953a65efe90ed06ed97b9","user":{"login":"nodejs","id":9950313,"avatar_url":"https://avatars3.githubusercontent.com/u/9950313?v=4","gravatar_id":"","url":"https://api.github.com/users/nodejs","html_url":"https://github.com/nodejs","followers_url":"https://api.github.com/users/nodejs/followers","following_url":"https://api.github.com/users/nodejs/following{/other_user}","gists_url":"https://api.github.com/users/nodejs/gists{/gist_id}","starred_url":"https://api.github.com/users/nodejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodejs/subscriptions","organizations_url":"https://api.github.com/users/nodejs/orgs","repos_url":"https://api.github.com/users/nodejs/repos","events_url":"https://api.github.com/users/nodejs/events{/privacy}","received_events_url":"https://api.github.com/users/nodejs/received_events","type":"Organization","site_admin":false},"repo":{"id":27193779,"name":"node","full_name":"nodejs/node","owner":{"login":"nodejs","id":9950313,"avatar_url":"https://avatars3.githubusercontent.com/u/9950313?v=4","gravatar_id":"","url":"https://api.github.com/users/nodejs","html_url":"https://github.com/nodejs","followers_url":"https://api.github.com/users/nodejs/followers","following_url":"https://api.github.com/users/nodejs/following{/other_user}","gists_url":"https://api.github.com/users/nodejs/gists{/gist_id}","starred_url":"https://api.github.com/users/nodejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodejs/subscriptions","organizations_url":"https://api.github.com/users/nodejs/orgs","repos_url":"https://api.github.com/users/nodejs/repos","events_url":"https://api.github.com/users/nodejs/events{/privacy}","received_events_url":"https://api.github.com/users/nodejs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nodejs/node","description":"Node.js JavaScript runtime :sparkles::turtle::rocket::sparkles:","fork":false,"url":"https://api.github.com/repos/nodejs/node","forks_url":"https://api.github.com/repos/nodejs/node/forks","keys_url":"https://api.github.com/repos/nodejs/node/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nodejs/node/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nodejs/node/teams","hooks_url":"https://api.github.com/repos/nodejs/node/hooks","issue_events_url":"https://api.github.com/repos/nodejs/node/issues/events{/number}","events_url":"https://api.github.com/repos/nodejs/node/events","assignees_url":"https://api.github.com/repos/nodejs/node/assignees{/user}","branches_url":"https://api.github.com/repos/nodejs/node/branches{/branch}","tags_url":"https://api.github.com/repos/nodejs/node/tags","blobs_url":"https://api.github.com/repos/nodejs/node/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nodejs/node/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nodejs/node/git/refs{/sha}","trees_url":"https://api.github.com/repos/nodejs/node/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nodejs/node/statuses/{sha}","languages_url":"https://api.github.com/repos/nodejs/node/languages","stargazers_url":"https://api.github.com/repos/nodejs/node/stargazers","contributors_url":"https://api.github.com/repos/nodejs/node/contributors","subscribers_url":"https://api.github.com/repos/nodejs/node/subscribers","subscription_url":"https://api.github.com/repos/nodejs/node/subscription","commits_url":"https://api.github.com/repos/nodejs/node/commits{/sha}","git_commits_url":"https://api.github.com/repos/nodejs/node/git/commits{/sha}","comments_url":"https://api.github.com/repos/nodejs/node/comments{/number}","issue_comment_url":"https://api.github.com/repos/nodejs/node/issues/comments{/number}","contents_url":"https://api.github.com/repos/nodejs/node/contents/{+path}","compare_url":"https://api.github.com/repos/nodejs/node/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nodejs/node/merges","archive_url":"https://api.github.com/repos/nodejs/node/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nodejs/node/downloads","issues_url":"https://api.github.com/repos/nodejs/node/issues{/number}","pulls_url":"https://api.github.com/repos/nodejs/node/pulls{/number}","milestones_url":"https://api.github.com/repos/nodejs/node/milestones{/number}","notifications_url":"https://api.github.com/repos/nodejs/node/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nodejs/node/labels{/name}","releases_url":"https://api.github.com/repos/nodejs/node/releases{/id}","deployments_url":"https://api.github.com/repos/nodejs/node/deployments","created_at":"2014-11-26T19:57:11Z","updated_at":"2018-04-28T21:21:33Z","pushed_at":"2018-04-28T21:18:24Z","git_url":"git://github.com/nodejs/node.git","ssh_url":"git@github.com:nodejs/node.git","clone_url":"https://github.com/nodejs/node.git","svn_url":"https://github.com/nodejs/node","homepage":"https://nodejs.org","size":376165,"stargazers_count":48174,"watchers_count":48174,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10149,"mirror_url":null,"archived":false,"open_issues_count":723,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":10149,"open_issues":723,"watchers":48174,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nodejs/node/pulls/20300"},"html":{"href":"https://github.com/nodejs/node/pull/20300"},"issue":{"href":"https://api.github.com/repos/nodejs/node/issues/20300"},"comments":{"href":"https://api.github.com/repos/nodejs/node/issues/20300/comments"},"review_comments":{"href":"https://api.github.com/repos/nodejs/node/pulls/20300/comments"},"review_comment":{"href":"https://api.github.com/repos/nodejs/node/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nodejs/node/pulls/20300/commits"},"statuses":{"href":"https://api.github.com/repos/nodejs/node/statuses/b45e969fd0e4e045c50cda0c1eb11e76fb1cf37e"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"TimothyGu"}}