https://codereview.chromium.org/882893002/diff/1/src/parser.cc
File src/parser.cc (right):
https://codereview.chromium.org/882893002/diff/1/src/parser.cc#newcode1384
src/parser.cc:1384: case Token::FUNCTION:
On 2015/01/28 02:57:19, arv wrote:
This is going to be problematic. export default supports exporting
function
expressions too.
```js
export default function() {}
```
We need to do some lookahead that is currently not covered by the
current code.
Can you add a TODO?
That's the TODO above about FunctionDeclaration[Default] (that's what
the grammar calls this sort of anonymous function declaration). I've
moved the TODO down to these two places. Also added failing tests with a
TODO.
https://codereview.chromium.org/882893002/diff/1/test/cctest/test-parsing.cc
File test/cctest/test-parsing.cc (right):
https://codereview.chromium.org/882893002/diff/1/test/cctest/test-parsing.cc#newcode4747
test/cctest/test-parsing.cc:4747: "var a; export { a",
On 2015/01/28 02:57:19, arv wrote:
Add test for `export {,}`?
Done.
https://codereview.chromium.org/882893002/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.