8000 Fix #860 issues 2-4 by dop251 · Pull Request #879 · dop251/goja · GitHub
[go: up one dir, main page]

Skip to content

Fix #860 issues 2-4 - #879

Merged
dop251 merged 2 commits into
masterfrom
fix-860-patterns
Nov 16, 2026
Merged

dop251 merged 2 commits into
masterfrom
fix-860-patterns

Conversation

@dop251
@dop251 dop251 commented Nov 16, 2026 •
Copy link
Copy Markdown
Owner

Fixes #860

bardrop and others added 2 commits November 13, 2026 06:18
- Computed data properties in object literals are now defined as own
  properties instead of being assigned, so a preceding getter or setter
  with the same name, an inherited setter, or __proto__ no longer
  interferes.
- Array patterns that were first parsed as assignment patterns now keep
  element initialisers when reinterpreted as binding patterns
  (e.g. `let { b: [v1 = 1] = [] } = {}`).
- A concise arrow function body no longer inherits the formal parameters
  context of the enclosing function, so `await` is allowed in
  `async function f(p = async (q) => await q) {}`.

Fixes #860.
@dop251
dop251 merged commit 2eded47 into master Nov 16, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

-obj converts twice; computed key after a same-name getter throws; nested pattern with defaults rejected

2 participants

0