Comment #57 on issue 2700 by [email protected]: Implement arrow functions
https://code.google.com/p/v8/issues/detail?id=2700
@ross: I tried this code.
class Animal{
cat(){
new Sea().water(() => console.log(typeof this.water));
/*
* Result of `console.log(typeof this.water)`
* V8 4.4.63.26, OS Ubuntu (iojs)
* 'function'
* V8 4.5.103.14, OS Windows (Chrome 45)
* 'undefined'
*/
}
}
class Sea{
water(cb){
cb.call(this);
}
}
new Animal().cat();
The result shows that lexical `this` feature works on `V8 4.4` but `V8
4.5`. So which V8 version is this bug correctly fixed?
--
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.