Skip to content

Commit 8ea7edf

Browse files
Julian RosseGeoffreyBooth
authored andcommitted
merge master (#4597)
1 parent 704924c commit 8ea7edf

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

docs/v1/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@
615615
<p><strong>Latest Version:</strong> <a href="https://github.com/jashkenas/coffeescript/tarball/1.12.6">1.12.6</a></p>
616616
<blockquote class="uneditable-code-block"><pre><code class="language-bash">npm install -g coffeescript
617617
</code></pre>
618-
</blockquote><p><strong>CoffeeScript 2 is coming!</strong> It adds support for <a href="/v2/#classes">ES2015 classes</a>, <a href="/v2/#fat-arrow"><code>async</code>/<code>await</code></a>, and generates JavaScript using ES2015+ syntax. <a href="/v2/">Learn more</a>.</p></p>
618+
</blockquote><p><strong>CoffeeScript 2 is coming!</strong> It adds support for <a href="/v2/#classes">ES2015 classes</a>, <a href="/v2/#fat-arrow"><code>async</code>/<code>await</code></a>, <a href="/v2/#jsx">JSX</a>, <a href="/v2/#splats">object rest/spread syntax</a>, and generates JavaScript using ES2015+ syntax. <a href="/v2/">Learn more</a>.</p></p>
619619

620620
<h2>Overview</h2>
621621
<p><em>CoffeeScript on the left, compiled JavaScript output on the right.</em></p>

lib/coffeescript/rewriter.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/rewriter.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ exports.Rewriter = class Rewriter
164164

165165
startImplicitCall = (idx) ->
166166
stack.push ['(', idx, ours: yes]
167-
tokens.splice idx, 0, generate 'CALL_START', '('
167+
tokens.splice idx, 0, generate 'CALL_START', '(', ['', 'implicit function call', token[2]]
168168

169169
endImplicitCall = ->
170170
stack.pop()

test/error_messages.coffee

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1627,3 +1627,12 @@ test "#3906: error for unusual indentation", ->
16271627
c
16281628
^^
16291629
'''
1630+
1631+
test "#4283: error message for implicit call", ->
1632+
assertErrorFormat '''
1633+
(a, b c) ->
1634+
''', '''
1635+
[stdin]:1:5: error: unexpected implicit function call
1636+
(a, b c) ->
1637+
^
1638+
'''

0 commit comments

Comments
 (0)