Status: New
Owner: ----
New issue 2396 by [email protected]: eval messes up function name
resolution
http://code.google.com/p/v8/issues/detail?id=2396
Load the following HTML page in Chrome:
<html><head><title>eval test</title></head>
<body><script>
(function a() {
function a() {}
eval("true");
alert(a.toString())
})();
</script></body></html>
The alert box displays the outer a() function!!! Without the eval call, it
displays the inner a() function. Same behavior in node.js
On other browsers, the alert box always displays the inner a() function.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev