Comment #18 on issue 3292 by [email protected]: Implement generator
mirror
https://code.google.com/p/v8/issues/detail?id=3292
We need to make ScopeIterator in runtime.cc work with the generator object,
and introduce Runtime_GetGeneratorObjectScopeCount and
Runtime_GetGeneratorObjectScopeDetails.
For this, at my first glance, we'll need to implement smth like
MaterializeLocalScope() to materialize JSGeneratorObject's operand_stack
and the context chain (is this correct?).
Example:
function* gg(x)
{
var y = x + 1;
with ({ foo: x, __proto__: null }) {
debugger;
yield foo + y;
}
}
gg(5).next().value;
At this point I'd expect to get the same variable scope chain for the
suspended generator, as at the "debugger" statement:
With Block
foo: 5
Local
arguments: Arguments[1]
x: 5
y: 6
Global
@yangguo, wingo, would you guys implement this on the V8 side?
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
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.