diff options
author | Timothy Gu <timothygu99@gmail.com> | 2016-12-21 13:41:29 -0800 |
---|---|---|
committer | Michaƫl Zasso <targos@protonmail.com> | 2017-01-22 11:27:58 +0100 |
commit | 326e967c6bddd1cfb901f7b12d06f9e3136243c1 (patch) | |
tree | 0c846ada094cfe3f96e1dde04470e091b533b2a2 /test/parallel/test-whatwg-url-searchparams-constructor.js | |
parent | 4f8582e5332f0cac61b5f441cdfcac0b5959d775 (diff) | |
download | node-new-326e967c6bddd1cfb901f7b12d06f9e3136243c1.tar.gz |
url: export URLSearchParams
Fixes: #10761
Diffstat (limited to 'test/parallel/test-whatwg-url-searchparams-constructor.js')
-rw-r--r-- | test/parallel/test-whatwg-url-searchparams-constructor.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/parallel/test-whatwg-url-searchparams-constructor.js b/test/parallel/test-whatwg-url-searchparams-constructor.js index 34ccb4c37d..9b7ca1e4e9 100644 --- a/test/parallel/test-whatwg-url-searchparams-constructor.js +++ b/test/parallel/test-whatwg-url-searchparams-constructor.js @@ -2,13 +2,9 @@ require('../common'); const assert = require('assert'); -const URL = require('url').URL; +const URLSearchParams = require('url').URLSearchParams; -const m = new URL('http://example.org'); -let params = m.searchParams; - -// Until we export URLSearchParams -const URLSearchParams = params.constructor; +let params; // Basic URLSearchParams construction params = new URLSearchParams(); |