summaryrefslogtreecommitdiff
path: root/Libraries/LibJS/Token.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-28 19:48:12 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-28 19:48:12 +0100
commit82ca7ae1f806d03efbba49c4c1c8404b7863f558 (patch)
treee1bb3818cb62b91007570a461568a32ce2187d43 /Libraries/LibJS/Token.h
parente5ebdb9bca3588b2fb01891127771b03dae09ad9 (diff)
downloadserenity-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