summaryrefslogtreecommitdiff
path: root/Userland/Services
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-04-11 22:52:25 +0200
committerAndreas Kling <kling@serenityos.org>2021-04-12 09:38:57 +0200
commit6e9eb0a284661803d634ce0bd8c1656a156878bb (patch)
treebcc26af1379abd9fbb8b978f0402032e875860b4 /Userland/Services
parent9ec4defdd2452319ca2a633e56a72e5c836fe22a (diff)
downloadserenity-6e9eb0a284661803d634ce0bd8c1656a156878bb.zip
LibJS: Add Object::get_without_side_effects()
Similar to Value::to_string_without_side_effects() this is mostly a regular object property lookup, but with the guarantee that it will be side-effect free, i.e. no accessors or native property functions will be called. This is needed when we want to access user-controlled object properties for debug logging, for example. The specific use case will be error objects which will soon no longer have internal name/message properties, so we need to guarantee that printing an error, which may already be the result of an exception, won't blow up in our face :^)
Diffstat (limited to 'Userland/Services')
0 files changed, 0 insertions, 0 deletions