Skip to content

Commit

Permalink
Make sure async-functions work without generators.
Browse files Browse the repository at this point in the history
This was due to a typo.

Fixes google#1231
  • Loading branch information
arv committed Aug 4, 2014
1 parent 5d46db7 commit 83d19c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/codegeneration/FromOptionsTransformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class FromOptionsTransformer extends MultiTransformer {
append(BlockBindingTransformer);

// generator must come after for of and rest parameters
if (transformOptions.generators || transformOptions.asyncFuntions)
if (transformOptions.generators || transformOptions.asyncFunctions)
append(GeneratorTransformPass);

if (transformOptions.symbols)
Expand Down
4 changes: 3 additions & 1 deletion test/feature/AsyncFunctions/Basics.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Options: --async-functions
// Options: --async-functions --generators=false
// Async.
//
// The --generators=false part is to test #1231

var f = (x, y) => ({x, y});

Expand Down

0 comments on commit 83d19c8

Please sign in to comment.