Part of this is fixed:
```
d8> function f(cb = function() { return "needs a cb!"; }) { return cb(); }
undefined
d8> f()
"needs a cb!"
d8> f(function() { return "ok!"; })
"ok!"
d8> f()
"needs a cb!"
d8> function f(x = local) { var local = 1; return x; }
undefined
d8> f()
(d8):1: ReferenceError: local is not defined
function f(x = local) { var local = 1; return x; }
^
ReferenceError: local is not defined
at f ((d8):1:16)
at (d8):1:1
```
there's a problem with object literals, because the literal index gets
confused
(since the literals are technically declared in a block scope of the
enclosing
scope, there's no way to get at the literal index). I'm not totally sure
what to
do about that yet
https://codereview.chromium.org/1053773006/
--
--
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.