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

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


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

--- Comment #11 from Douglas Camata <d.camata at gmail.com> ---
(In reply to comment #9)
> (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?

The problem is that WebKit is telling me through the prototype that SQLTransaction has no methods. It is expect that the prototype of SQLTransaction has at least two keys, which are the functions of a SQLTransaction: the constructor and the executeSql methods. 

The representation of the logged stuff in the console doesn't matter, but WebKit says the prototype is completely empty, but the object has 2 methods.

-- 
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/51a84343/attachment.html>


More information about the webkit-unassigned mailing list