Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added let to object declaration #104

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
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
8 changes: 4 additions & 4 deletions features.txt
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,9 @@ Property Shorthand

Shorter syntax for common object property definition idiom.

6| obj = { |x|, |y| };
6| let obj = { |x|, |y| };

5| obj = { |x: x|, |y: y| };
5| let obj = { |x: x|, |y: y| };

Computed Property Names
-----------------------
Expand All @@ -425,7 +425,7 @@ Method Properties
Support for method notation in object property definitions,
for both regular functions and generator functions.

6| obj = {
6| let obj = {
6| |foo (a, b)| {
6| ...
6| },
Expand All @@ -437,7 +437,7 @@ for both regular functions and generator functions.
6| }
6| };

5| obj = {
5| let obj = {
5| foo|: function| (a, b) {
5| ...
5| },
Expand Down