Closed Bug 1271360 Opened 8 years ago Closed 8 years ago

SyntaxError warning in Browser Console caused by late 'use strict'; in Templater.jsm

Categories

(DevTools Graveyard :: Graphic Commandline and Toolbar, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1266826

People

(Reporter: john.s.thomsen, Unassigned)

Details

(Whiteboard: [good first bug])

The patch for bug 1128988 added
'use strict';
to devtools/shared/gcli/Templater.jsm

It was not added as first statement in the file, hence causes SyntaxError warning in Browser Console when the Web Console is opened:

"SyntaxError: 'use strict' statement won't be enforced as a directive because it isn't in directive prologue position"

The statement should be moved, removed, or disabled.
Fixed in bug 1266826
Priority: -- → P2
Whiteboard: [good first bug]
This bug is already fixed as a part of bug 1266826.
https://hg.mozilla.org/mozilla-central/rev/666e690baccc
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.