ladybird/Libraries
Aliaksandr Kalenik dcfc515cd0 LibJS: Fix arrow function parsing bug
In the following example:
```js
const f = (i) => ({
    obj: { a: { x: i }, b: { x: i } },
    g: () => {},
});
```

The body of function `f` is initially parsed as an arrow function. As a
result, what is actually an object expression is interpreted as a formal
parameter with a binding pattern. Since duplicate identifiers are not
allowed in this context (`i` in the example), the parser generates an
error, causing the entire script to fail parsing.

This change ignores the "Duplicate parameter names in bindings" error
during arrow function parameter parsing, allowing the parser to continue
and recognize the object expression of the outer arrow function with an
implicit return.

Fixes error on https://chat.openai.com/
2025-05-26 12:44:21 +03:00
..
LibCompress
LibCore LibCore: Expose Unix socket fd transfer limit publicly 2025-05-24 19:15:06 +03:00
LibCrypto LibCrypto: Replace {Unsigned,Signed}BigInteger impl with LibTomMath 2025-05-23 11:57:21 +02:00
LibDevTools
LibDiff LibDiff: Remove a bunch of unused code 2025-05-13 12:46:34 +02:00
LibDNS Meta: Enforce newlines around namespaces 2025-05-14 02:01:59 -06:00
LibFileSystem AK+LibCore: Avoid double-negation of syscall error values 2025-05-10 21:19:46 -04:00
LibGC Meta: Enforce newlines around namespaces 2025-05-14 02:01:59 -06:00
LibGfx Everywhere: Format all python files with black 2025-05-22 16:21:42 +02:00
LibHTTP LibURL: Rename 'cannot have a base URL' to 'has an opaque path' 2025-04-06 08:24:54 -04:00
LibIDL Meta: Enforce newlines around namespaces 2025-05-14 02:01:59 -06:00
LibImageDecoderClient Everywhere: Make TransportSocket non-movable 2025-04-09 15:27:52 +02:00
LibIPC LibIPC: Chunk sent file descriptors by MAX_TRANSFER_FDS 2025-05-24 19:15:06 +03:00
LibJS LibJS: Fix arrow function parsing bug 2025-05-26 12:44:21 +03:00
LibLine Meta: Enforce newlines around namespaces 2025-05-14 02:01:59 -06:00
LibMain
LibMedia LibMedia: Use a simple locked vector to handle audio commands on macOS 2025-05-25 08:45:50 -04:00
LibRegex LibRegex: Make the trie rewrite optimisation maintain the alt order 2025-05-21 14:28:45 +02:00
LibRequests Meta: Enforce newlines around namespaces 2025-05-14 02:01:59 -06:00
LibRIFF
LibSyntax
LibTest AK: Add initial support for AK testsuite on Windows 2025-05-20 10:58:43 -06:00
LibTextCodec Meta: Enforce newlines around namespaces 2025-05-14 02:01:59 -06:00
LibThreading Everywhere: Fix trivial -Wunnecessary-virtual-specifier instances 2025-05-12 11:40:45 -06:00
LibTLS LibTLS+Tests: Build LibTLS tests from their test directory 2025-05-19 18:37:15 -04:00
LibUnicode LibUnicode: Avoid rejecting end-of-text position as a valid boundary 2025-04-11 15:30:17 -04:00
LibURL LibURL: Add FIXME's for testing equality of opaque origins 2025-05-24 09:51:44 -04:00
LibWasm LibWasm: Quit early in memory_fill if store_to_memory traps 2025-05-22 07:35:58 +01:00
LibWeb LibWeb: Do not clear the selection, when query is not found 2025-05-26 11:22:48 +02:00
LibWebSocket
LibWebView Meta: Enforce newlines around namespaces 2025-05-14 02:01:59 -06:00
LibXML Meta: Enforce newlines around namespaces 2025-05-14 02:01:59 -06:00
CMakeLists.txt AK: Add initial support for AK testsuite on Windows 2025-05-20 10:58:43 -06:00