diff options
author | Timothy Gu <timothygu99@gmail.com> | 2017-02-01 15:59:16 -0800 |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2017-02-03 12:23:30 -0800 |
commit | 590626ba11ecb68c53a8091c74b6bd098d944203 (patch) | |
tree | 94578e3f58e99801381a01ad4044e22da84bca84 /benchmark/url/url-searchparams-iteration.js | |
parent | 7cd6a7ddcb006ff8c36bc2abe0a545167dd56dac (diff) | |
download | android-node-v8-590626ba11ecb68c53a8091c74b6bd098d944203.tar.gz android-node-v8-590626ba11ecb68c53a8091c74b6bd098d944203.tar.bz2 android-node-v8-590626ba11ecb68c53a8091c74b6bd098d944203.zip |
benchmark: simplify URLSearchParams import
PR-URL: https://github.com/nodejs/node/pull/11111
Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Italo A. Casas <me@italoacasas.com>
Diffstat (limited to 'benchmark/url/url-searchparams-iteration.js')
-rw-r--r-- | benchmark/url/url-searchparams-iteration.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmark/url/url-searchparams-iteration.js b/benchmark/url/url-searchparams-iteration.js index caa4e45c41..833271ef30 100644 --- a/benchmark/url/url-searchparams-iteration.js +++ b/benchmark/url/url-searchparams-iteration.js @@ -1,7 +1,7 @@ 'use strict'; const common = require('../common.js'); const assert = require('assert'); -const URLSearchParams = new (require('url').URL)('a:').searchParams.constructor; +const { URLSearchParams } = require('url'); const bench = common.createBenchmark(main, { method: ['forEach', 'iterator'], |