1'use strict'; 2 3// Tests below are not from WPT. 4 5require('../common'); 6const assert = require('assert'); 7const { URLSearchParams } = require('url'); 8 9{ 10 const params = new URLSearchParams(); 11 assert.throws(() => { 12 params.forEach.call(undefined); 13 }, { 14 code: 'ERR_INVALID_THIS', 15 name: 'TypeError', 16 message: 'Value of "this" must be of type URLSearchParams' 17 }); 18} 19