mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
LibJS: Improve Object.defineProperty test
This commit is contained in:
parent
31505dde7e
commit
02c9f4c951
Notes:
sideshowbarker
2024-07-19 18:30:50 +09:00
Committer: https://github.com/web-flow Commit: https://github.com/SerenityOS/serenity/commit/02c9f4c951d
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ try {
|
|||
|
||||
try {
|
||||
Object.defineProperty(o, "bar", { value: "xx", enumerable: false });
|
||||
assert(false);
|
||||
} catch (e) {
|
||||
assert(e.name === "TypeError");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue