For shape consistency, you would ideally change this to this._onerror.  In practice this does not matter at all for test code like this, so it's okay to not fix, just be aware.