mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 17:47:43 +00:00
LibJS: Improve Object.defineProperty test
This commit is contained in:
parent
31505dde7e
commit
02c9f4c951
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ try {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Object.defineProperty(o, "bar", { value: "xx", enumerable: false });
|
Object.defineProperty(o, "bar", { value: "xx", enumerable: false });
|
||||||
|
assert(false);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
assert(e.name === "TypeError");
|
assert(e.name === "TypeError");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue