Closed
Bug 1007108
Opened 11 years ago
Closed 9 years ago
[commonplace] JS logging loses line references
Categories
(Marketplace Graveyard :: Consumer Pages, defect, P3)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: muffinresearch, Unassigned)
References
Details
(Whiteboard: [marketplace-transition])
I hit this issue in Spartacus which uses the same logging code from commonplace.
The way that the console calls are set-up results in the logging line being reported as the logging code itself *not* the place that calls it.
the fix is to use bind at the point the logging methods are defined. In my testing apply didn't seem to work at all.
e.g.
var log = console.log.bind(console, prefix);
Note: Be aware that casper doesn't have a native bind in the webkit version it uses.
Updated•11 years ago
|
Priority: -- → P3
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Whiteboard: [marketplace-transition]
You need to log in
before you can comment on or make changes to this bug.
Description
•