Open
Bug 603764
Opened 15 years ago
Updated 3 years ago
JS warning: variable basePath redeclares argument in chrome-harness.js:112
Categories
(Testing :: Mochitest, defect)
Tracking
(Not tracked)
NEW
People
(Reporter: ddahl, Unassigned)
Details
I just started using head.js in my browser test suite and I always see this warning:
JS Component Loader: WARNING chrome://mochikit/content/chrome-harness.js:112
variable basePath redeclares argument
Not sure if it is that big of a deal, I thought I would file this bug to find out.
Comment 1•15 years ago
|
||
browser-chrome test?
Comment 2•15 years ago
|
||
http://mxr.mozilla.org/mozilla-central/source/testing/mochitest/chrome-harness.js#112
112 var basePath = basePath.slice(0, idx);
basePath is passed in into the function, thus the warning
Comment 3•15 years ago
|
||
just to clarify, the local var is hiding the argument.
| Reporter | ||
Comment 4•15 years ago
|
||
ok, just wanted to see if this was a potential problem.
Comment 5•15 years ago
|
||
The code seems to do the right thing, so it's just matter of bad code throwing a correct warning.
Comment 6•15 years ago
|
||
Just need to remove the "var"
| Assignee | ||
Updated•7 years ago
|
Component: BrowserTest → Mochitest
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•