Skip to content

Commit d360c2a

Browse files
committed
ignore errors that too frequent yet
1 parent 7f344a3 commit d360c2a

File tree

2 files changed

+86
-22
lines changed

2 files changed

+86
-22
lines changed

resources/idlharness.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3301,14 +3301,20 @@ function idl_test(srcs, deps, idl_setup_func) {
33013301
srcs = (srcs instanceof Array) ? srcs : [srcs] || [];
33023302
deps = (deps instanceof Array) ? deps : [deps] || [];
33033303
var setup_error = null;
3304+
const validationIgnored = [
3305+
"constructor-member",
3306+
"dict-arg-default",
3307+
"require-exposed"
3308+
];
33043309
return Promise.all(
33053310
srcs.concat(deps).map(fetch_spec))
33063311
.then(function(results) {
33073312
const astArray = results.map(result =>
33083313
WebIDL2.parse(result.idl, { sourceName: result.spec })
33093314
);
33103315
test(() => {
3311-
const validations = WebIDL2.validate(astArray);
3316+
const validations = WebIDL2.validate(astArray)
3317+
.filter(v => !validationIgnored.includes(v.ruleName));
33123318
if (validations.length) {
33133319
const message = validations.map(v => v.message).join("\n\n");
33143320
throw new Error(message);

resources/webidl2/lib/webidl2.js

Lines changed: 79 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)