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