1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00
serenity/Userland/Libraries/LibJS
Linus Groh cd12b2aa57 LibJS: Implement the RequireObjectCoercible abstract operation
Throws an exception if the given value is nullish, returns it otherwise.
We can now gradually replace such manual checks with this function where
applicable.

This also has the advantage that the somewhat useless "ToObject on null
or undefined" will be replaced with "null cannot be converted to an
object" or "undefined cannot be converted to an object". :^)
2021-06-06 19:34:43 +02:00
..
Heap LibJS: Instrument HeapBlock cell allocation for ASAN 2021-05-29 17:47:29 +01:00
Runtime LibJS: Implement the RequireObjectCoercible abstract operation 2021-06-06 19:34:43 +02:00
Tests LibJS: Implement Number.prototype.valueOf() 2021-06-06 06:56:08 +01:00
AST.cpp LibJS: Replace StringOrSymbol::from_value with Value::to_property_key 2021-06-05 14:15:28 +01:00
AST.h LibJS: Implement destructuring assignments and function parameters 2021-05-29 23:02:23 +04:30
CMakeLists.txt LibJS: Fix indendation in CMakeLists.txt 2021-06-02 00:14:53 +01:00
Console.cpp Everywhere: Use linusg@serenityos.org for my copyright headers 2021-04-22 22:51:19 +02:00
Console.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Forward.h LibJS: Replace StringOrSymbol::from_value with Value::to_property_key 2021-06-05 14:15:28 +01:00
Interpreter.cpp LibJS: Implement destructuring assignments and function parameters 2021-05-29 23:02:23 +04:30
Interpreter.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Lexer.cpp Everywhere: Use s.unverwerth@serenityos.org :^) 2021-05-29 12:30:08 +01:00
Lexer.h Everywhere: Use s.unverwerth@serenityos.org :^) 2021-05-29 12:30:08 +01:00
MarkupGenerator.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
MarkupGenerator.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Parser.cpp AK+LibWasm+LibJS: Disallow Variant.has() on types that aren't contained 2021-06-02 18:02:47 +02:00
Parser.h LibJS: Implement destructuring assignments and function parameters 2021-05-29 23:02:23 +04:30
SourceRange.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
SyntaxHighlighter.cpp LibJS: Fix off-by-one error in SyntaxHighlighter 2021-06-05 00:32:28 +04:30
SyntaxHighlighter.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
Token.cpp Everywhere: Use s.unverwerth@serenityos.org :^) 2021-05-29 12:30:08 +01:00
Token.h Everywhere: Use s.unverwerth@serenityos.org :^) 2021-05-29 12:30:08 +01:00