mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00
LibJS: Use assertNotReached() in tests
This commit is contained in:
parent
92a9fe0e49
commit
b9415dc0e9
8 changed files with 36 additions and 27 deletions
|
@ -26,7 +26,7 @@ try {
|
|||
|
||||
try {
|
||||
Object.defineProperty(o, "bar", { value: "xx", enumerable: false });
|
||||
assert(false);
|
||||
assertNotReached();
|
||||
} catch (e) {
|
||||
assert(e.name === "TypeError");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue