Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

WSH: Convert numeric parameters to numbers

For some reason, WSH wrapper was passing numeric parameters as
strings and JSHint couldn't understand them. This patch converts
to numbers all parameters that can be converted.

Fixes GH-671.
  • Loading branch information...
commit c6058c05c04f98b974af56a7cb46d56d8d13cba6 1 parent 56a3cd9
@valueof valueof authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  src/platforms/wsh.js
View
3  src/platforms/wsh.js
@@ -223,6 +223,9 @@
}
} else {
options[option] = value === "true" ? true : value === "false" ? false : value;
+ if (!isNaN(Number(value))) {
+ options[option] = parseInt(value, 10);
+ }
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.