Skip to content

Commit

Permalink
Remove DOMException dev dependency
Browse files Browse the repository at this point in the history
Node.js v18+ has one built-in, which suffices for our purpose of running web platform tests.
  • Loading branch information
domenic committed Nov 12, 2023
1 parent 6c6fb17 commit 6aa56a7
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 17 deletions.
13 changes: 0 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"@domenic/eslint-config": "^3.0.0",
"benchmark": "^2.1.4",
"c8": "^8.0.1",
"domexception": "^4.0.0",
"esbuild": "^0.19.5",
"eslint": "^8.53.0",
"webidl2js": "^17.1.0"
Expand Down
4 changes: 2 additions & 2 deletions test/testharness.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ module.exports = {
},

assert_throws_js(errorConstructor, func) {
// Don't bother testing the errorConstructor since that brings in tricky realm issues.
assert.throws(func);
// Don't pass errorConstructor itself since that brings in tricky realm issues.
assert.throws(func, errorConstructor.name);
},

assert_unreached() {
Expand Down
1 change: 0 additions & 1 deletion test/web-platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const path = require("path");
const fs = require("fs");
const vm = require("vm");
const assert = require("assert");
const DOMException = require("domexception");
const { directlyRunnableTests, resourceDependentTests } = require("../scripts/get-latest-platform-tests.js");
const testharness = require("./testharness.js");

Expand Down

0 comments on commit 6aa56a7

Please sign in to comment.