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