mirror of
https://github.com/nodejs/node.git
synced 2025-05-04 06:27:35 +00:00

PR-URL: https://github.com/nodejs/node/pull/49692 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
9 lines
164 B
JavaScript
9 lines
164 B
JavaScript
'use strict';
|
|
require('../common');
|
|
const assert = require('assert');
|
|
|
|
assert.throws(
|
|
() => { new URL('a\0b'); },
|
|
{ code: 'ERR_INVALID_URL', input: 'a\0b' }
|
|
);
|