Skip to content

Commit

Permalink
Improve xhr.open not enough args error message
Browse files Browse the repository at this point in the history
I spotted this typo and thought we could further make
this error message more helpful.
  • Loading branch information
lencioni authored and domenic committed Apr 24, 2017
1 parent 461c638 commit 4513ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jsdom/living/xmlhttprequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ module.exports = function createXMLHttpRequest(window) {
const properties = this[xhrSymbols.properties];
const argumentCount = arguments.length;
if (argumentCount < 2) {
throw new TypeError("Not enought arguments");
throw new TypeError("Not enough arguments (expected at least 2)");
}
method = toByteString(method);
if (!tokenRegexp.test(method)) {
Expand Down

0 comments on commit 4513ba1

Please sign in to comment.