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

Commit 256f2ca

Browse files
committed
Remove some removed-from-spec name/code mappings
See whatwg/webidl#946.
1 parent d4a50da commit 256f2ca

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# DOMException
22

3-
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.
3+
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.
44

55
Example usage:
66

lib/legacy-error-codes.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
{
22
"IndexSizeError": 1,
3-
"DOMStringSizeError": 2,
43
"HierarchyRequestError": 3,
54
"WrongDocumentError": 4,
65
"InvalidCharacterError": 5,
7-
"NoDataAllowedError": 6,
86
"NoModificationAllowedError": 7,
97
"NotFoundError": 8,
108
"NotSupportedError": 9,
@@ -14,7 +12,6 @@
1412
"InvalidModificationError": 13,
1513
"NamespaceError": 14,
1614
"InvalidAccessError": 15,
17-
"ValidationError": 16,
1815
"TypeMismatchError": 17,
1916
"SecurityError": 18,
2017
"NetworkError": 19,

scripts/get-latest-platform-tests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ if (process.env.NO_UPDATE) {
1111
// Pin to specific version, reflecting the spec version in the readme.
1212
//
1313
// To get the latest commit:
14-
// 1. Go to https://github.com/w3c/web-platform-tests/tree/master/WebIDL/ecmascript-binding/es-exceptions
14+
// 1. Go to https://github.com/web-platform-tests/wpt/tree/master/webidl/ecmascript-binding/es-exceptions
1515
// 2. Press "y" on your keyboard to get a permalink
1616
// 3. Copy the commit hash
17-
const commitHash = "d198d67803096e5252bd31735f57eb4db1c975a9";
17+
const commitHash = "904652fbaa979e6ac1e3c28b6ca0402b0179f62e";
1818

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

2323
fs.mkdirSync(targetDir, { recursive: true });

test/testharness.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exports.assert_false = (actual, message) => {
2020

2121
exports.assert_equals = assert.strictEqual;
2222

23-
exports.assert_throws = (expectedErrorSample, func) => {
23+
exports.assert_throws_js = (expectedErrorSample, func) => {
2424
assert.throws(func, actualError => actualError.name === expectedErrorSample.name);
2525
};
2626

0 commit comments

Comments
 (0)