This is a user error.
On Apr 19, 2014 12:40 PM, "johnjbarton" <notifications@github.com> wrote:

> In src/runtime/runtime.js:
>
> > @@ -394,41 +394,34 @@
> >      return rv;
> >    }
> >
> > -  function getPropertyDescriptor(object, name) {
> > -    while (object !== null) {
> > -      var result = $getOwnPropertyDescriptor(object, name);
> > -      if (result)
> > -        return result;
> > -      object = $getPrototypeOf(object);
> > -    }
> > -    return undefined;
> > -  }
> > -
> >    function superDescriptor(homeObject, name) {
> >      var proto = $getPrototypeOf(homeObject);
> >      if (!proto)
> >        throw $TypeError('super is null');
>
> Is this intended to be a user-error or an assert? All callers have to
> check the return value so may just while(proto) below.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/google/traceur-compiler/pull/964/files#r11794512>
> .
>