[Webkit-unassigned] [Bug 156613] Cannot access the SQLTransaction.constructor.prototype

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 22 14:27:22 PDT 2016


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

--- Comment #9 from Brady Eidson <beidson at apple.com> ---
(In reply to comment #8)
> (In reply to comment #7)
> > (In reply to comment #6)
> > > Created attachment 277099 [details]
> > > simple test case
> > > 
> > > Simple test case to reproduce the bug. Just open and check the output in the
> > > Javascript console and you will see that the prototype of SQLTransaction's
> > > constructor is empty.
> > 
> > The test seems to work for me in the latest WebKit, I see in the console:
> > [Log] SQLTransaction {executeSql: function} (attachment.cgi, line 6)
> > [Log] function Object() { (attachment.cgi, line 7)
> >     [native code]
> > }
> > [Log] {} (attachment.cgi, line 8)
> 
> The problem is that last line should have been something like this:
> 
> SQLTransaction {Symbol(Symbol.toStringTag): "SQLTransaction"}
> * constructor: SQLTransaction()
> * executeSql: executeSql()
> * Symbol(Symbol.toStringTag): "SQLTransaction"
> * __proto__: Object

I doubt there's any spec on precisely how such things should be logged in the console, which is purely an advisory side function of the browser for developers.

Are there any other more severe differences in the native javascript, such as typeof or instanceof differing?

-- 
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/20160422/0ddb0b35/attachment.html>


More information about the webkit-unassigned mailing list