google-code-export / esprima

Automatically exported from code.google.com/p/esprima
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

LineTerminator before => should be an error #591

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. esprima.parse("()\n=> 42;")

What is the expected output?
Some error like "Illegal newline before arrow"

What do you see instead?
No error

What version of the product are you using? On what operating system? Which
browser? Doesn't matter

Please provide any additional information below.

Section 11.9.1 of the ES6 draft says 

ArrowFunction[In, Yield] :
  ArrowParameters[?Yield] [no LineTerminator here] => ConciseBody[?In]

Original issue reported on code.google.com by GabeL...@gmail.com on 17 Sep 2014 at 1:04

GoogleCodeExporter commented 9 years ago
Migrated to https://github.com/jquery/esprima/issues/1009.

Original comment by ariya.hi...@gmail.com on 9 Feb 2015 at 5:18