Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions 6 es5.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ A complete program source tree.
```js
interface Function <: Node {
id: Identifier | null;
params: [ Pattern ];
params: [ Identifier ];
body: BlockStatement;
}
```
Expand Down Expand Up @@ -334,7 +334,7 @@ A `try` statement. If `handler` is `null` then `finalizer` must be a `BlockState
```js
interface CatchClause <: Node {
type: "CatchClause";
param: Pattern;
param: Identifier;
body: BlockStatement;
}
```
Expand Down Expand Up @@ -689,7 +689,7 @@ A sequence expression, i.e., a comma-separated sequence of expressions.

# Patterns

Destructuring binding and assignment are not part of ES5, but all binding positions accept `Pattern` to allow for destructuring in ES6. Nevertheless, for ES5, the only `Pattern` subtype is [`Identifier`](#identifier).
Destructuring binding and assignment are not part of ES5, but all binding positions accept `Pattern` to allow for destructuring in ES6. Nevertheless, for ES5, the only two `Pattern` subtypes are [`Identifier`](#identifier) and [`MemberExpression`](#memberexpression).

```js
interface Pattern <: Node { }
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.