[Webkit-unassigned] [Bug 151113] calling super() a second time in a constructor should throw

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 7 13:12:47 PDT 2016


https://bugs.webkit.org/show_bug.cgi?id=151113

--- Comment #4 from Saam Barati <sbarati at apple.com> ---
(In reply to comment #3)
> (In reply to comment #2)
> > I'm working on patch for this issue. 
> > I've created new op code - op_is_empty to check if thisRegister is empty or
> > unassigned before assign value returned from parent constructor(super). I
> > implemented op_is_empty in LLInt and currently working on implementing it in
> > JITOpcodes & DFG
> 
> Why do you need a new op code for this?  Can't we just use check_tdz?

Doing that would introduce a synthetic try/catch around something we expect
to often be true.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160407/2e3fd8f2/attachment.html>


More information about the webkit-unassigned mailing list