diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-28 19:48:12 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-28 19:48:12 +0100 |
commit | 82ca7ae1f806d03efbba49c4c1c8404b7863f558 (patch) | |
tree | e1bb3818cb62b91007570a461568a32ce2187d43 /Libraries/LibJS/Token.h | |
parent | e5ebdb9bca3588b2fb01891127771b03dae09ad9 (diff) | |
download | serenity-82ca7ae1f806d03efbba49c4c1c8404b7863f558.zip |
LibJS: Oops, "instanceof" was backwards!
Fix the "instanceof" operator to check if the constructor's prototype
property occurs anywhere in the prototype chain of the instance object.
This patch also adds Object.setPrototypeOf() to make it possible to
create a test for this bug.
Thanks to DexesTTP for pointing this out! :^)
Diffstat (limited to 'Libraries/LibJS/Token.h')
0 files changed, 0 insertions, 0 deletions