summaryrefslogtreecommitdiff
path: root/Userland/Services/WebContent
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-06-06 16:10:23 +0100
committerAndreas Kling <kling@serenityos.org>2021-06-06 19:34:43 +0200
commitcd12b2aa577bd977ec19214e7099c02dadd5d765 (patch)
tree20ca44197d159e29f6e8cc32234e18aacddd9981 /Userland/Services/WebContent
parent4ca4c43cbd2b31c79b505066b7f6d28dfe0a7eaa (diff)
downloadserenity-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