Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

Commit

Permalink
Remove some removed-from-spec name/code mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed Oct 3, 2021
1 parent d4a50da commit 256f2ca
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# DOMException

This package implements the [`DOMException`](https://heycam.github.io/webidl/#idl-DOMException) class, from web browsers. It exists in service of [jsdom](https://github.com/tmpvar/jsdom) and related packages.
This package implements the [`DOMException`](https://heycam.github.io/webidl/#idl-DOMException) class, from web browsers. It exists in service of [jsdom](https://github.com/jsdom/jsdom) and related packages.

Example usage:

Expand Down
3 changes: 0 additions & 3 deletions lib/legacy-error-codes.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
{
"IndexSizeError": 1,
"DOMStringSizeError": 2,
"HierarchyRequestError": 3,
"WrongDocumentError": 4,
"InvalidCharacterError": 5,
"NoDataAllowedError": 6,
"NoModificationAllowedError": 7,
"NotFoundError": 8,
"NotSupportedError": 9,
Expand All @@ -14,7 +12,6 @@
"InvalidModificationError": 13,
"NamespaceError": 14,
"InvalidAccessError": 15,
"ValidationError": 16,
"TypeMismatchError": 17,
"SecurityError": 18,
"NetworkError": 19,
Expand Down
6 changes: 3 additions & 3 deletions scripts/get-latest-platform-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ if (process.env.NO_UPDATE) {
// Pin to specific version, reflecting the spec version in the readme.
//
// To get the latest commit:
// 1. Go to https://github.com/w3c/web-platform-tests/tree/master/WebIDL/ecmascript-binding/es-exceptions
// 1. Go to https://github.com/web-platform-tests/wpt/tree/master/webidl/ecmascript-binding/es-exceptions
// 2. Press "y" on your keyboard to get a permalink
// 3. Copy the commit hash
const commitHash = "d198d67803096e5252bd31735f57eb4db1c975a9";
const commitHash = "904652fbaa979e6ac1e3c28b6ca0402b0179f62e";

const urlPrefix = `https://raw.githubusercontent.com/w3c/web-platform-tests/${commitHash}/` +
`WebIDL/ecmascript-binding/es-exceptions/`;
`webidl/ecmascript-binding/es-exceptions/`;
const targetDir = path.resolve(__dirname, "..", "test", "web-platform-tests");

fs.mkdirSync(targetDir, { recursive: true });
Expand Down
2 changes: 1 addition & 1 deletion test/testharness.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ exports.assert_false = (actual, message) => {

exports.assert_equals = assert.strictEqual;

exports.assert_throws = (expectedErrorSample, func) => {
exports.assert_throws_js = (expectedErrorSample, func) => {
assert.throws(func, actualError => actualError.name === expectedErrorSample.name);
};

Expand Down

0 comments on commit 256f2ca

Please sign in to comment.