Function expressions can't have expression-closure form

RESOLVED FIXED

Status

RESOLVED FIXED
11 years ago
10 years ago

People

(Reporter: lhansen, Assigned: lhansen)

Tracking

Details

Attachments

(1 attachment)

(Assignee)

Description

11 years ago
For example:

es> var y = function (x) x
SyntaxError: (repl):1: Internal: Unhandled statement mode [class FullStmt]
(Assignee)

Comment 1

10 years ago
Created attachment 317699 [details] [diff] [review]
Patch

Fixes this bug, additionally fixes a bug in the lexer (the 'filename' property was not public following earlier cleanup), additionally gets rid of redundant Ast::Head structures where scope simplification no longer requires them.
Attachment #317699 - Flags: review?(jodyer)

Updated

10 years ago
Attachment #317699 - Flags: review?(jodyer) → review+
(Assignee)

Comment 2

10 years ago
changeset:   530:a8609b43a6ae
Status: ASSIGNED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.