{"action":"opened","issue":{"url":"https://api.github.com/repos/canjs/canjs/issues/4502","repository_url":"https://api.github.com/repos/canjs/canjs","labels_url":"https://api.github.com/repos/canjs/canjs/issues/4502/labels{/name}","comments_url":"https://api.github.com/repos/canjs/canjs/issues/4502/comments","events_url":"https://api.github.com/repos/canjs/canjs/issues/4502/events","html_url":"https://github.com/canjs/canjs/issues/4502","id":365255698,"node_id":"MDU6SXNzdWUzNjUyNTU2OTg=","number":4502,"title":"get in debugger helper not available in `everything.mjs`","user":{"login":"justinbmeyer","id":78602,"node_id":"MDQ6VXNlcjc4NjAy","avatar_url":"https://avatars0.githubusercontent.com/u/78602?v=4","gravatar_id":"","url":"https://api.github.com/users/justinbmeyer","html_url":"https://github.com/justinbmeyer","followers_url":"https://api.github.com/users/justinbmeyer/followers","following_url":"https://api.github.com/users/justinbmeyer/following{/other_user}","gists_url":"https://api.github.com/users/justinbmeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/justinbmeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinbmeyer/subscriptions","organizations_url":"https://api.github.com/users/justinbmeyer/orgs","repos_url":"https://api.github.com/users/justinbmeyer/repos","events_url":"https://api.github.com/users/justinbmeyer/events{/privacy}","received_events_url":"https://api.github.com/users/justinbmeyer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-30T19:55:35Z","updated_at":"2018-09-30T19:55:35Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"For some reason:\r\n\r\n```\r\nfunction debuggerHelper (left, right) {\r\n\t//!steal-remove-start\r\n\tif (process.env.NODE_ENV !== 'production') {\r\n\t\tvar shouldBreak = evaluateArgs.apply(null, Array.prototype.slice.call(arguments, 0, -1));\r\n\t\tif (!shouldBreak) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// jshint +W098\r\n\t\tvar options = arguments[arguments.length - 1];\r\n\t\tvar get = function (path) {\r\n\t\t\treturn options.scope.get(path);\r\n\t\t};\r\n\t\t// jshint -W098\r\n\r\n\t\tcanLog.log('Use `get(<path>)` to debug this template');\r\n\r\n\t\tvar allowDebugger = __testing.allowDebugger;\r\n\t\t// forgotten debugger\r\n\t\t// jshint -W087\r\n\t\tif (allowDebugger) {\r\n\t\t\tdebugger;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// jshint +W087\r\n\t}\r\n\t//!steal-remove-end\r\n\r\n\tcanLog.warn('Forgotten {{debugger}} helper');\r\n}\r\n```\r\n\r\ngets built to:\r\n\r\n```\r\nfunction debuggerHelper (left, right) {\r\n\t//!steal-remove-start\r\n\tif (process.env.NODE_ENV !== 'production') {\r\n\t\tvar shouldBreak = evaluateArgs.apply(null, Array.prototype.slice.call(arguments, 0, -1));\r\n\t\tif (!shouldBreak) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// jshint -W098\r\n\r\n\t\tcanLog_1_0_0_canLog.log('Use `get(<path>)` to debug this template');\r\n\r\n\t\tvar allowDebugger = __testing.allowDebugger;\r\n\t\t// forgotten debugger\r\n\t\t// jshint -W087\r\n\t\tif (allowDebugger) {\r\n\t\t\tdebugger;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// jshint +W087\r\n\t}\r\n\t//!steal-remove-end\r\n\r\n\tcanLog_1_0_0_canLog.warn('Forgotten {{debugger}} helper');\r\n}\r\n```\r\n\r\nIs steal `dead-code eliminating` the `get` function?"}}
{"actor":{"display_login":"justinbmeyer"}}