diff options
author | Linus Groh <mail@linusgroh.de> | 2021-06-06 16:10:23 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-06 19:34:43 +0200 |
commit | cd12b2aa577bd977ec19214e7099c02dadd5d765 (patch) | |
tree | 20ca44197d159e29f6e8cc32234e18aacddd9981 /Userland/Services/WebContent | |
parent | 4ca4c43cbd2b31c79b505066b7f6d28dfe0a7eaa (diff) | |
download | serenity-cd12b2aa577bd977ec19214e7099c02dadd5d765.zip |
LibJS: Implement the RequireObjectCoercible abstract operation
Throws an exception if the given value is nullish, returns it otherwise.
We can now gradually replace such manual checks with this function where
applicable.
This also has the advantage that the somewhat useless "ToObject on null
or undefined" will be replaced with "null cannot be converted to an
object" or "undefined cannot be converted to an object". :^)
Diffstat (limited to 'Userland/Services/WebContent')
0 files changed, 0 insertions, 0 deletions