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