1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:37:34 +00:00
serenity/Libraries/LibJS/Tests
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
..
array-basic.js LibJS: Rename some tests 2020-03-25 15:57:18 +01:00
constructor-basic.js LibJS: Implement basic support for the "new" keyword 2020-03-28 16:33:52 +01:00
exception-ReferenceError.js LibJS: Add a tiny little test for the ReferenceError exception 2020-03-28 10:27:48 +01:00
for-basic.js LibJS: Handle "for" statements with empty initializer and updater 2020-03-25 16:14:51 +01:00
function-missing-arg.js LibJS: Allow function calls with missing arguments 2020-03-27 12:56:05 +01:00
instanceof-basic.js LibJS: Oops, "instanceof" was backwards! 2020-03-28 19:48:12 +01:00
NaN-basic.js LibJS: The global isNaN() should coerce to number before testing NaN 2020-03-27 12:59:41 +01:00
Object.getPrototypeOf.js LibJS: Add a global "Object" constructor 2020-03-28 17:23:54 +01:00
Object.prototype.hasOwnProperty.js LibJS: Add a very basic test runner (shell script) + some tests 2020-03-25 15:32:17 +01:00
Object.prototype.js LibJS: Add a global "Object" constructor 2020-03-28 17:23:54 +01:00
parser-unary-associativity.js LibJS: Fix broken parsing of !o.a 2020-03-28 11:51:44 +01:00
run-tests LibJS: Tweak run-tests output a bit 2020-03-25 15:52:17 +01:00
String.prototype.charAt.js LibJS: Add a very basic test runner (shell script) + some tests 2020-03-25 15:32:17 +01:00
throw-basic.js LibJS: Add a basic test for the "throw" keyword 2020-03-25 16:09:23 +01:00
typeof-basic.js LibJS: Rename some tests 2020-03-25 15:57:18 +01:00
variable-undefined.js LibJS: Allow function calls with missing arguments 2020-03-27 12:56:05 +01:00