Skip to content

Commit

Permalink
Add filename and line number to warning "return-not-in-func-deprecated"
Browse files Browse the repository at this point in the history
Fixes #1670
  • Loading branch information
Seppo J. Vuolteenaho authored and arantius committed Nov 26, 2012
1 parent 3ecad3b commit d4fb083
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/greasemonkey.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,9 @@ function runScriptInSandbox(script, sandbox) {
// not in a function.
GM_util.logError(
gStringBundle.GetStringFromName('return-not-in-func-deprecated'),
true // is a warning
true, // is a warning
fileName,
e.lineNumber
);
Components.utils.evalInSandbox(
GM_util.anonWrap(code), sandbox, gMaxJSVersion, fileName, 1);
Expand Down

0 comments on commit d4fb083

Please sign in to comment.