[Webkit-unassigned] [Bug 212449] Javascript engine gets confused, calls method on wrong object.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 27 20:09:16 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=212449
--- Comment #1 from Yusuke Suzuki <ysuzuki at apple.com> ---
> $this
< PayrollRemittanceAgencyEventWizardStepHome {cid: "view247", el: k, tagName: "div", events: Object, $el: k, …}
> $this.__proto__
< PayrollRemittanceAgencyEventWizardStepHome {on: function, listenTo: function, off: function, stopListening: function, once: function, …}
> $this.__proto__.__proto__
< WizardStep {on: function, listenTo: function, off: function, stopListening: function, once: function, …}
> $this.__proto__.__proto__.render
< function render() {
this.initCardsBlock();
return this._render();
}
> $this.render
< function render() {
//do render stuff
}
> $this.hasOwnProperty('render')
< true
So, WizardStep#render is not called because $this has its own "render" function which is empty. And it is defined in PayrollRemittanceAgencyEventWizard.js.
So, this is not related to ES6 class.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200528/93946021/attachment.htm>
More information about the webkit-unassigned
mailing list