[Webkit-unassigned] [Bug 159446] RELEASE_ASSERT(!thisObject) in ObjCCallbackFunctionImpl::call when calling JSExport ObjC Constructor without operator new

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 5 17:39:31 PDT 2016


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

Joseph Pecoraro <joepeck at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joepeck at webkit.org

--- Comment #1 from Joseph Pecoraro <joepeck at webkit.org> ---
JavaScript Classes disallow calling the constructor without `new`.

> class Foo {}; Foo()
< Exception: TypeError: Cannot call a class constructor

Maybe the ObjC bridge should do the same.

-- 
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/20160706/6f4833a6/attachment.html>


More information about the webkit-unassigned mailing list