ladybird/Userland/Libraries/LibJS
Shannon Booth 6da0ac3aa7 LibJS: Update CreateDynamicFunction to latest spec
The use of extract_parameter_arguments_and_body() here is to make things
a little less awkward. If we were to exactly follow spec there would be
an awkward handling of the case that no arguments were provided and we
needed to provide an empty string.

To do this, we would need to either:
  - Provide an Optional<Value> for bodyString to CreateDynamicFunction
  - Create a new empty PrimitiveString wrapped in a JS Value.

Either case is somewhat awkward. Instead, just refactor this logic
outside of CreateDynamicFunction and make the caller do it.

Otherwise, this commit prepares for the new definition of
HostEnsureCanCompileStrings.
2024-11-04 17:15:15 -07:00
..
Bytecode LibJS: Split Call Instruction by CallType 2024-11-02 11:15:58 +01:00
Contrib/Test262 LibJS: Inline somes AO's into InitializeHostDefinedRealm 2024-11-03 07:41:49 -05:00
Heap LibJS+LibWeb: Remove remaining use and reference to SafeFunction 2024-10-30 20:55:45 +01:00
Runtime LibJS: Update CreateDynamicFunction to latest spec 2024-11-04 17:15:15 -07:00
Tests LibJS: Implement tc39/proposal-atomics-microwait (Atomics.pause) 2024-11-03 08:05:58 -05:00
AST.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
AST.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
CMakeLists.txt LibJS: Implement Uint8Array.prototype.toBase64 2024-09-03 17:43:03 +02:00
Console.cpp LibJS: Do not store console table columns and rows in a plain vector 2024-11-01 00:35:54 +01:00
Console.h LibJS+WebContent: Implement console.table 2024-08-22 09:08:50 +01:00
CyclicModule.cpp Everywhere: Write dtors for types with incomplete members out-of-line 2024-06-16 07:19:56 -04:00
CyclicModule.h Everywhere: Write dtors for types with incomplete members out-of-line 2024-06-16 07:19:56 -04:00
Forward.h LibJS: Store RegExp flags as a bitmask 2024-10-26 15:42:57 +02:00
Lexer.cpp LibJS: Remove unused field Token::m_filename 2024-09-02 15:22:51 +02:00
Lexer.h
MarkupGenerator.cpp AK: Make String::number() infallible 2024-10-14 20:47:35 +02:00
MarkupGenerator.h
Module.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
Module.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
ModuleLoading.h
Parser.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
Parser.h LibJS: Update CreateDynamicFunction to latest spec 2024-11-04 17:15:15 -07:00
ParserError.cpp LibJS: Make ParserError::to_string infallible 2024-04-05 20:01:37 -04:00
ParserError.h LibJS: Make ParserError::to_string infallible 2024-04-05 20:01:37 -04:00
Position.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
Print.cpp LibJS: Do not print large arrays 2024-10-11 09:59:39 +01:00
Print.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
Script.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
Script.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
SourceCode.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
SourceCode.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
SourceRange.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
SourceTextModule.cpp Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
SourceTextModule.h Meta: Update my e-mail address everywhere 2024-10-04 13:19:50 +02:00
SyntaxHighlighter.cpp LibJS: Count code-points instead of bytes for syntax highlight 2024-10-31 08:43:14 +00:00
SyntaxHighlighter.h
SyntheticModule.cpp LibJS: Remove two unused members from ExecutionContext 2024-05-31 16:31:33 +02:00
SyntheticModule.h
Token.cpp
Token.h LibJS: Remove unused field Token::m_filename 2024-09-02 15:22:51 +02:00