summaryrefslogtreecommitdiff
path: root/test/parallel/test-whatwg-url-custom-href-side-effect.js
blob: f161f6bbe9546ef06e4f05922d3d2694046e6e74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
'use strict';

// Tests below are not from WPT.
const common = require('../common');
const assert = require('assert');

const ref = new URL('http://example.com/path');
const url = new URL('http://example.com/path');
common.expectsError(() => {
  url.href = '';
}, {
  type: TypeError
});

assert.deepStrictEqual(url, ref);