Status: New
Owner: ----
New issue 1647 by [email protected]: Immediately called function turns to
undefined
http://code.google.com/p/v8/issues/detail?id=1647
var t = {
foo: function() {}
};
( function bar() {
t.foo();
console.log( 'bar:', bar );
setTimeout( bar, 10 );
}() );
setTimeout( function() {
console.log( 'boom!' );
t.number = 2;
}, 100 );
I'm running this on V8 3.4.14.4 from chrome 14.0.835 (Linux and Mac) and
15.0.861 (Windows)
Some times I refresh the page, after boom is logged, the script will stop
logging 'bar' and the bar function, but will log "bar undefined" instead.
I failed to reproduce the bug with shorter code.
This seems like some odd race condition, that may have to do with issue #24.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev