We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab914ed commit 440c867Copy full SHA for 440c867
test/web-platform.js
@@ -36,7 +36,13 @@ function testURL(expected) {
36
function testSetterCase(testCase, propertyName) {
37
return () => {
38
const url = new URL(testCase.href);
39
- url[propertyName] = testCase.new_value;
+ try {
40
+ url[propertyName] = testCase.new_value;
41
+ } catch (e) {
42
+ if (!(e instanceof TypeError)) {
43
+ throw e;
44
+ }
45
46
47
for (const expectedProperty in testCase.expected) {
48
assert.equal(url[expectedProperty], testCase.expected[expectedProperty]);
0 commit comments