{"action":"created","issue":{"url":"https://api.github.com/repos/standard-things/esm/issues/570","repository_url":"https://api.github.com/repos/standard-things/esm","labels_url":"https://api.github.com/repos/standard-things/esm/issues/570/labels{/name}","comments_url":"https://api.github.com/repos/standard-things/esm/issues/570/comments","events_url":"https://api.github.com/repos/standard-things/esm/issues/570/events","html_url":"https://github.com/standard-things/esm/issues/570","id":351858649,"node_id":"MDU6SXNzdWUzNTE4NTg2NDk=","number":570,"title":"[pattern] instanceof RegExp is false in Jest ","user":{"login":"clarkdo","id":4312154,"node_id":"MDQ6VXNlcjQzMTIxNTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4312154?v=4","gravatar_id":"","url":"https://api.github.com/users/clarkdo","html_url":"https://github.com/clarkdo","followers_url":"https://api.github.com/users/clarkdo/followers","following_url":"https://api.github.com/users/clarkdo/following{/other_user}","gists_url":"https://api.github.com/users/clarkdo/gists{/gist_id}","starred_url":"https://api.github.com/users/clarkdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clarkdo/subscriptions","organizations_url":"https://api.github.com/users/clarkdo/orgs","repos_url":"https://api.github.com/users/clarkdo/repos","events_url":"https://api.github.com/users/clarkdo/events{/privacy}","received_events_url":"https://api.github.com/users/clarkdo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-18T23:03:20Z","updated_at":"2018-08-19T14:55:33Z","closed_at":null,"author_association":"NONE","body":"Reproducible repo: https://github.com/clarkdo/esm-issue\r\n\r\nThe repo is made by `jest`, `babel` and using `esm` to load module dynamicaly.\r\n\r\nIssue: After use esm to import any js, `/pattern/ instanceof RegExp` will become false.\r\n\r\nExpect: `/pattern/ instanceof RegExp` should always be true.\r\n\r\nSteps:\r\n\r\n1. yarn install\r\n2. yarn test\r\n\r\nBTW: issue only happened in latest release 3.0.77"},"comment":{"url":"https://api.github.com/repos/standard-things/esm/issues/comments/414133188","html_url":"https://github.com/standard-things/esm/issues/570#issuecomment-414133188","issue_url":"https://api.github.com/repos/standard-things/esm/issues/570","id":414133188,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDEzMzE4OA==","user":{"login":"clarkdo","id":4312154,"node_id":"MDQ6VXNlcjQzMTIxNTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4312154?v=4","gravatar_id":"","url":"https://api.github.com/users/clarkdo","html_url":"https://github.com/clarkdo","followers_url":"https://api.github.com/users/clarkdo/followers","following_url":"https://api.github.com/users/clarkdo/following{/other_user}","gists_url":"https://api.github.com/users/clarkdo/gists{/gist_id}","starred_url":"https://api.github.com/users/clarkdo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clarkdo/subscriptions","organizations_url":"https://api.github.com/users/clarkdo/orgs","repos_url":"https://api.github.com/users/clarkdo/repos","events_url":"https://api.github.com/users/clarkdo/events{/privacy}","received_events_url":"https://api.github.com/users/clarkdo/received_events","type":"User","site_admin":false},"created_at":"2018-08-19T14:55:33Z","updated_at":"2018-08-19T14:55:33Z","author_association":"NONE","body":"Yes, you’re right, a lot of built-in objects are reset "}}
{"actor":{"display_login":"clarkdo"}}