Status: Accepted
Owner: [email protected]
CC: [email protected]
Labels: Type-Bug Priority-Low
New issue 2710 by [email protected]: Debug: be accurate when evaluate
expression tries to reference non-heap variables from outer scope.
http://code.google.com/p/v8/issues/detail?id=2710
In the following code:
(function() {
var Number = 2;
var String = 3;
return function() {
debugger;
return Number;
};
})()()
when paused on debugger statement try the following watch expression:
[ Number, String ];
Actual:
First array item is '2', but the second item of array is a function.
For 'String' sub-expression is unexpectedly bound to a global property
rather than to a local variable, like it worked for the 'Number'
sub-expression. This is counterintuitive.
Expected:
V8 correctly bounds 'String' to a corresponding local variable. It throws
an exception that the variable value is unavailable (alternatively it can
actually provide a value, as
https://code.google.com/p/v8/issues/detail?id=2377 suggests).
--
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/groups/opt_out.