{"action":"opened","issue":{"url":"https://api.github.com/repos/uhop/node-re2/issues/25","repository_url":"https://api.github.com/repos/uhop/node-re2","labels_url":"https://api.github.com/repos/uhop/node-re2/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/uhop/node-re2/issues/25/comments","events_url":"https://api.github.com/repos/uhop/node-re2/issues/25/events","html_url":"https://github.com/uhop/node-re2/issues/25","id":320889450,"number":25,"title":"Calling RE2 as a function crashes Node when the constructor would have thrown an exception","user":{"login":"Exter-N","id":2236342,"avatar_url":"https://avatars2.githubusercontent.com/u/2236342?v=4","gravatar_id":"","url":"https://api.github.com/users/Exter-N","html_url":"https://github.com/Exter-N","followers_url":"https://api.github.com/users/Exter-N/followers","following_url":"https://api.github.com/users/Exter-N/following{/other_user}","gists_url":"https://api.github.com/users/Exter-N/gists{/gist_id}","starred_url":"https://api.github.com/users/Exter-N/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Exter-N/subscriptions","organizations_url":"https://api.github.com/users/Exter-N/orgs","repos_url":"https://api.github.com/users/Exter-N/repos","events_url":"https://api.github.com/users/Exter-N/events{/privacy}","received_events_url":"https://api.github.com/users/Exter-N/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-07T17:34:59Z","updated_at":"2018-05-07T17:34:59Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"For example, the following code :\r\n```js\r\nconst RE2 = require('re2');\r\nRE2();\r\n```\r\nCrashes Node (as of v8.2.1) with the following error :\r\n```\r\nFATAL ERROR: v8::ToLocalChecked Empty MaybeLocal.\r\n 1: node::Abort() [node]\r\n 2: 0x123a243 [node]\r\n 3: v8::V8::ToLocalEmpty() [node]\r\n 4: WrappedRE2::New(Nan::FunctionCallbackInfo<v8::Value> const&) [/PATH_TO_RE2/build/Release/re2.node]\r\n 5: 0x7f571d420725 [/PATH_TO_RE2/build/Release/re2.node]\r\n 6: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&)) [node]\r\n 7: 0xa061ce [node]\r\n 8: 0xa056e8 [node]\r\n 9: 0x2b164e3840bd\r\nAbandon (core dumped)\r\n```"}}
{"actor":{"display_login":"Exter-N"}}