Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 439381

Summary: Provide console replacement for worker
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Michael_Rennie
Version: 5.0   
Target Milestone: 7.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2014-07-10 18:16:47 EDT
There are pervasive calls to console.log() in error-handling cases of the eslint rules.

These will fail when running in a web worker since `console` is not defined. Fortunately they don't run in normal circumstances, only when a badly-broken AST is encountered.

We should just write a shim for `console.log` that posts log messages back to the originating window.
Comment 1 Michael Rennie CLA 2014-07-14 13:08:06 EDT
Fixed in ; http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=367a4a05c29cc70268066747f32e6234a8bb7f66

also updated the remainder of the rules to use the eslint-env directive