Skip to content

Commit c5b8a0a

Browse files
fix(testharness): fix typo and explanation (#46487)
1 parent 5acc693 commit c5b8a0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/testharness.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@
857857
promise = promiseOrConstructor;
858858
description = descriptionOrPromise;
859859
assert(maybeDescription === undefined,
860-
"Too many args pased to no-constructor version of promise_rejects_dom");
860+
"Too many args passed to no-constructor version of promise_rejects_dom, or accidentally explicitly passed undefined");
861861
}
862862
return bring_promise_to_current_realm(promise)
863863
.then(test.unreached_func("Should have rejected: " + description))
@@ -2174,7 +2174,7 @@
21742174
func = funcOrConstructor;
21752175
description = descriptionOrFunc;
21762176
assert(maybeDescription === undefined,
2177-
"Too many args pased to no-constructor version of assert_throws_dom");
2177+
"Too many args passed to no-constructor version of promise_rejects_dom, or accidentally explicitly passed undefined");
21782178
}
21792179
assert_throws_dom_impl(type, func, description, "assert_throws_dom", constructor)
21802180
}

0 commit comments

Comments
 (0)