{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4556","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4556/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4556/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4556/events","html_url":"https://github.com/HaxeFoundation/haxe/issues/4556","id":107922952,"number":4556,"title":"haxe.CallStack.exceptionStack for js fails when DCE disabled","user":{"login":"mandel59","id":1079715,"avatar_url":"https://avatars.githubusercontent.com/u/1079715?v=3","gravatar_id":"","url":"https://api.github.com/users/mandel59","html_url":"https://github.com/mandel59","followers_url":"https://api.github.com/users/mandel59/followers","following_url":"https://api.github.com/users/mandel59/following{/other_user}","gists_url":"https://api.github.com/users/mandel59/gists{/gist_id}","starred_url":"https://api.github.com/users/mandel59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mandel59/subscriptions","organizations_url":"https://api.github.com/users/mandel59/orgs","repos_url":"https://api.github.com/users/mandel59/repos","events_url":"https://api.github.com/users/mandel59/events{/privacy}","received_events_url":"https://api.github.com/users/mandel59/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HaxeFoundation/haxe/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/HaxeFoundation/haxe/labels/platform-javascript","name":"platform-javascript","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"nadako","id":49749,"avatar_url":"https://avatars.githubusercontent.com/u/49749?v=3","gravatar_id":"","url":"https://api.github.com/users/nadako","html_url":"https://github.com/nadako","followers_url":"https://api.github.com/users/nadako/followers","following_url":"https://api.github.com/users/nadako/following{/other_user}","gists_url":"https://api.github.com/users/nadako/gists{/gist_id}","starred_url":"https://api.github.com/users/nadako/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadako/subscriptions","organizations_url":"https://api.github.com/users/nadako/orgs","repos_url":"https://api.github.com/users/nadako/repos","events_url":"https://api.github.com/users/nadako/events{/privacy}","received_events_url":"https://api.github.com/users/nadako/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-09-23T13:45:17Z","updated_at":"2015-11-23T09:23:06Z","closed_at":null,"body":"The following code (from https://github.com/HaxeFoundation/haxe/pull/3838) fails when DCE disabled.\r\n\r\n```haxe\r\nclass Main {\r\n    static function main() {\r\n        try {\r\n            throw false;\r\n        } catch (e:Dynamic) {\r\n            trace(e);\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n```\r\nryama% haxe -main Main -js main.js -dce no     \r\nryama% node main.js \r\n/Users/ryama/work/prog/haxe/test/main.js:115\r\n\t\thaxe_CallStack.lastException = e;\r\n\t\t^\r\n\r\nReferenceError: haxe_CallStack is not defined\r\n    at Function.Main.main (/Users/ryama/work/prog/haxe/test/main.js:115:3)\r\n    at console.undefined.log (/Users/ryama/work/prog/haxe/test/main.js:659:6)\r\n    at Object.<anonymous> (/Users/ryama/work/prog/haxe/test/main.js:660:3)\r\n    at Module._compile (module.js:434:26)\r\n    at Object.Module._extensions..js (module.js:452:10)\r\n    at Module.load (module.js:355:32)\r\n    at Function.Module._load (module.js:310:12)\r\n    at Function.Module.runMain (module.js:475:10)\r\n    at startup (node.js:117:18)\r\n    at node.js:951:3\r\n```"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/158885035","html_url":"https://github.com/HaxeFoundation/haxe/issues/4556#issuecomment-158885035","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4556","id":158885035,"user":{"login":"nadako","id":49749,"avatar_url":"https://avatars.githubusercontent.com/u/49749?v=3","gravatar_id":"","url":"https://api.github.com/users/nadako","html_url":"https://github.com/nadako","followers_url":"https://api.github.com/users/nadako/followers","following_url":"https://api.github.com/users/nadako/following{/other_user}","gists_url":"https://api.github.com/users/nadako/gists{/gist_id}","starred_url":"https://api.github.com/users/nadako/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadako/subscriptions","organizations_url":"https://api.github.com/users/nadako/orgs","repos_url":"https://api.github.com/users/nadako/repos","events_url":"https://api.github.com/users/nadako/events{/privacy}","received_events_url":"https://api.github.com/users/nadako/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T09:23:06Z","updated_at":"2015-11-23T09:23:06Z","body":"Hm, one option is to do a check if `haxe.CallStack` is included in `types` in genjs when dce=no."}}