From e381e48a79e86e34ce3740c6500ca2f697b6f5a6 Mon Sep 17 00:00:00 2001 From: Geoffrey Booth Date: Sat, 6 May 2017 06:11:21 -0700 Subject: [PATCH] Fix typo; closes #4187 (#4539) --- lib/coffeescript/rewriter.js | 2 +- src/rewriter.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/coffeescript/rewriter.js b/lib/coffeescript/rewriter.js index 31cc3bce2c..591e784a34 100644 --- a/lib/coffeescript/rewriter.js +++ b/lib/coffeescript/rewriter.js @@ -193,7 +193,7 @@ }; inImplicitControl = function() { var ref; - return inImplicit && ((ref = stackTop()) != null ? ref[0] : void 0) === 'CONTROL'; + return inImplicit() && ((ref = stackTop()) != null ? ref[0] : void 0) === 'CONTROL'; }; startImplicitCall = function(j) { var idx; diff --git a/src/rewriter.coffee b/src/rewriter.coffee index 133b7d4fdf..570138225b 100644 --- a/src/rewriter.coffee +++ b/src/rewriter.coffee @@ -154,7 +154,7 @@ exports.Rewriter = class Rewriter inImplicitObject = -> inImplicit() and stackTop()?[0] is '{' # Unclosed control statement inside implicit parens (like # class declaration or if-conditionals) - inImplicitControl = -> inImplicit and stackTop()?[0] is 'CONTROL' + inImplicitControl = -> inImplicit() and stackTop()?[0] is 'CONTROL' startImplicitCall = (j) -> idx = j ? i