Status: Accepted
Owner: [email protected]
CC: [email protected]
Labels: Type-Bug Priority-Medium
New issue 3755 by [email protected]: Improve funciton name inferrer to
include prototype
https://code.google.com/p/v8/issues/detail?id=3755
Today we skip the prototype property in the function name referrer. This
leads to cases where it is not clear whether a "static" method is called or
a function on the prototype
function C() {}
C.prototype.m = function() {
C.m();
};
C.m = function() {
throw new Error();
}
try {
new C().m();
} catch (ex) {
console.log(ex.stack);
}
Our stack looks like:
Error
at Function.C.m (<anonymous>:7:9)
at C.m (<anonymous>:4:5)
...
Compared to IE's
Error
at C.m (eval code:6:3)
at C.prototype.m (eval code:3:3)
...
--
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.