update node modules
This commit is contained in:
4
node_modules/whatwg-url/lib/URL-impl.js
generated
vendored
4
node_modules/whatwg-url/lib/URL-impl.js
generated
vendored
@@ -4,7 +4,7 @@ const urlencoded = require("./urlencoded");
|
||||
const URLSearchParams = require("./URLSearchParams");
|
||||
|
||||
exports.implementation = class URLImpl {
|
||||
constructor(constructorArgs) {
|
||||
constructor(globalObject, constructorArgs) {
|
||||
const url = constructorArgs[0];
|
||||
const base = constructorArgs[1];
|
||||
|
||||
@@ -27,7 +27,7 @@ exports.implementation = class URLImpl {
|
||||
|
||||
// We cannot invoke the "new URLSearchParams object" algorithm without going through the constructor, which strips
|
||||
// question mark by default. Therefore the doNotStripQMark hack is used.
|
||||
this._query = URLSearchParams.createImpl([query], { doNotStripQMark: true });
|
||||
this._query = URLSearchParams.createImpl(globalObject, [query], { doNotStripQMark: true });
|
||||
this._query._url = this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user