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)

x86
All
defect

Tracking

(Not tracked)

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.
browser-chrome test?
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
just to clarify, the local var is hiding the argument.
ok, just wanted to see if this was a potential problem.
The code seems to do the right thing, so it's just matter of bad code throwing a correct warning.
Just need to remove the "var"
Component: BrowserTest → Mochitest
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.