1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:28:12 +00:00
serenity/Libraries/LibJS
Marcin Gasperowicz eadce65e04
LibJS: Implement standard semantics for relational operators (#2417)
Previously, the relational operators where casting any value to double
and comparing the results according to C++ semantics.

This patch makes the relational operators in JS behave according to the
standard specification.

Since we don't have BigInt yet, the implementation doesn't take it into
account. 

Moved PreferredType from Object to Value. Value::to_primitive now
passes preferred_type to Object::to_primitive.
2020-05-28 17:19:59 +02:00
..
Heap LibJS: Use __APPLE__ instead of __MACH__ for MacOS build 2020-05-23 18:09:07 +02:00
Runtime LibJS: Implement standard semantics for relational operators (#2417) 2020-05-28 17:19:59 +02:00
Tests LibJS: Implement standard semantics for relational operators (#2417) 2020-05-28 17:19:59 +02:00
AST.cpp LibJS: Object index properties have descriptors; Handle sparse indices 2020-05-28 17:17:13 +02:00
AST.h LibJS: Add strict mode 2020-05-28 17:18:42 +02:00
CMakeLists.txt LibJS: Object index properties have descriptors; Handle sparse indices 2020-05-28 17:17:13 +02:00
Console.cpp LibJS: Add side-effect-free version of Value::to_string() 2020-05-15 13:50:42 +02:00
Console.h LibJS: Implement ConsoleClient 2020-05-05 09:15:16 +02:00
Forward.h LibJS: Create JS to HTML markup generator 2020-05-26 10:17:50 +02:00
Interpreter.cpp LibJS: Only log exception throw information on Serenity 2020-05-26 14:36:30 +02:00
Interpreter.h LibJS: Add strict mode 2020-05-28 17:18:42 +02:00
Lexer.cpp LibJS: Fix incorrect token column values (#2401) 2020-05-26 19:00:30 +02:00
Lexer.h LibJS: Fix incorrect token column values (#2401) 2020-05-26 19:00:30 +02:00
MarkupGenerator.cpp LibJS: Object index properties have descriptors; Handle sparse indices 2020-05-28 17:17:13 +02:00
MarkupGenerator.h Browser: Add output styles to JS source printed in the console 2020-05-26 10:17:50 +02:00
Parser.cpp LibJS: Strict mode assignment to 'eval' & 'arguments' is a syntax error 2020-05-28 17:18:42 +02:00
Parser.h LibJS: Add strict mode 2020-05-28 17:18:42 +02:00
Token.cpp LibJS: Handle hex and unicode escape sequences in string literals 2020-05-18 17:58:17 +02:00
Token.h LibJS: Handle hex and unicode escape sequences in string literals 2020-05-18 17:58:17 +02:00