diff options
author | Linus Groh <mail@linusgroh.de> | 2021-07-05 18:58:51 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-07-06 14:26:18 +0100 |
commit | 0ba81dc0b751f55c23f3a6d3c4cd00ea458af116 (patch) | |
tree | c3c8cdab59e09f070e1b0052d1dfa16192c960e9 /Userland/Shell | |
parent | 06ffc0c4db1619e130b57b61d6d809ae17ccb01c (diff) | |
download | serenity-0ba81dc0b751f55c23f3a6d3c4cd00ea458af116.zip |
LibJS: Remove Object::is_array() in favor of Value::is_array() and RTTI
It's way too easy to get this wrong: for the IsArray abstract operation,
Value::is_array() needs to be called. Since we have RTTI, the virtual
Object::is_array() method is not needed anymore - if we need to know
whether something is *actually* a JS::Array (we currently check in more
cases than we should, I think) and not a Proxy with an Array target, we
should do that in a way that doesn't look like an abstract operation.
Diffstat (limited to 'Userland/Shell')
0 files changed, 0 insertions, 0 deletions