{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/5629","repository_url":"https://api.github.com/repos/Microsoft/ChakraCore","labels_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/5629/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/5629/comments","events_url":"https://api.github.com/repos/Microsoft/ChakraCore/issues/5629/events","html_url":"https://github.com/Microsoft/ChakraCore/issues/5629","id":353613060,"node_id":"MDU6SXNzdWUzNTM2MTMwNjA=","number":5629,"title":"Incorrect realization of RegExp.prototype.toString() ","user":{"login":"sunlili","id":10752186,"node_id":"MDQ6VXNlcjEwNzUyMTg2","avatar_url":"https://avatars1.githubusercontent.com/u/10752186?v=4","gravatar_id":"","url":"https://api.github.com/users/sunlili","html_url":"https://github.com/sunlili","followers_url":"https://api.github.com/users/sunlili/followers","following_url":"https://api.github.com/users/sunlili/following{/other_user}","gists_url":"https://api.github.com/users/sunlili/gists{/gist_id}","starred_url":"https://api.github.com/users/sunlili/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunlili/subscriptions","organizations_url":"https://api.github.com/users/sunlili/orgs","repos_url":"https://api.github.com/users/sunlili/repos","events_url":"https://api.github.com/users/sunlili/events{/privacy}","received_events_url":"https://api.github.com/users/sunlili/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-24T01:43:46Z","updated_at":"2018-08-24T01:43:46Z","closed_at":null,"author_association":"NONE","body":"Executing following code : \r\n```\r\nvar obj1 = new RegExp('')\r\nlet arg_1 = obj1;\r\nlet handler_1 = {\r\n        get:function (oTarget, sKey) {\r\n                if (sKey.toString() == 'Symbol(Symbol.toPrimitive)') { }\r\n                if (sKey.toString() == 'valueOf') { }\r\n                if (sKey.toString() == 'toString') {}\r\n                if (sKey.toString() == 'Symbol(Symbol.toStringTag)') {}\r\n                print(oTarget);\r\n                print(sKey.toString());\r\n                return Reflect.get(oTarget, sKey);\r\n        },\r\n};\r\nlet p_1 = new Proxy(obj1, handler_1);\r\nprint(p_1.toString());\r\nprint(\"BT_FLAG\");\r\n```\r\nOutput of ChakraCore(ch 1.10) : \r\n```\r\n /(?:)/\r\ntoString\r\nTypeError: RegExp.prototype.toString: 'this' is not a RegExp object\r\n```\r\nHowever, the output should be : \r\n```\r\n/(?:)/\r\ntoString\r\n/(?:)/\r\nsource\r\n/(?:)/\r\nflags\r\n/(?:)/\r\nBT_FLAG\r\n```\r\n\r\nBT group\r\n2018.08.24"}}
{"actor":{"display_login":"sunlili"}}