Status: Accepted
Owner: sgje...@chromium.org
Labels: Type-Bug Priority-High

New issue 483 by sgje...@chromium.org: cat
http://code.google.com/p/v8/issues/detail?id=483

The following code fails with the exception

TypeError: Cannot call method 'bind' of undefined

When construction an object from the function X.

Function.prototype.bind = function (context) {
   var t = this;
   return function() {
     return t.apply(context);
   }
}

X = function construct1(){
   this.func = this.func.bind(this);
};

X.prototype.func = function() {
}

new X()

The bug was introduced in r2710.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to