Bug 888399 - Fix missing parenthesis in DebuggerClient.Argument.prototype.getArgument. r=dcamp

This commit is contained in:
Brandon Benvie 2013-06-28 11:25:57 -07:00
parent 0b7b106e1a
commit d5a5fdd2c5

View File

@ -320,7 +320,7 @@ DebuggerClient.Argument = function DCP(aPosition) {
};
DebuggerClient.Argument.prototype.getArgument = function DCP_getArgument(aParams) {
if (!this.position in aParams) {
if (!(this.position in aParams)) {
throw new Error("Bad index into params: " + this.position);
}
return aParams[this.position];