1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00
serenity/Libraries/LibJS
Andreas Kling 82ca7ae1f8 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! :^)
2020-03-28 19:48:12 +01:00
..
Heap LibJS: Disable HEAP_DEBUG logging on non-SerenityOS platforms 2020-03-25 09:49:14 +01:00
Runtime LibJS: Oops, "instanceof" was backwards! 2020-03-28 19:48:12 +01:00
Tests LibJS: Oops, "instanceof" was backwards! 2020-03-28 19:48:12 +01:00
AST.cpp LibJS: Implement the "instanceof" operator 2020-03-28 16:56:54 +01:00
AST.h LibJS: Implement the "instanceof" operator 2020-03-28 16:56:54 +01:00
Forward.h LibJS: Implement "throw" 2020-03-24 22:21:58 +01:00
Interpreter.cpp LibJS: Add a global "Object" constructor 2020-03-28 17:23:54 +01:00
Interpreter.h LibJS: Allow function calls with missing arguments 2020-03-27 12:56:05 +01:00
Lexer.cpp LibJS: Implement "throw" 2020-03-24 22:21:58 +01:00
Lexer.h LibJS: Lex single quote strings, escaped chars and unterminated strings 2020-03-14 12:13:53 +01:00
Makefile LibJS: Add a global "Object" constructor 2020-03-28 17:23:54 +01:00
Parser.cpp LibJS: Implement the "instanceof" operator 2020-03-28 16:56:54 +01:00
Parser.h LibJS: Implement basic support for the "new" keyword 2020-03-28 16:33:52 +01:00
Token.cpp LibJS: Parse object expressions 2020-03-21 10:08:58 +01:00
Token.h LibJS: Implement "throw" 2020-03-24 22:21:58 +01:00