Review Request: kjs: Range needs a prototype

Bernd Buschinski b.buschinski at
Fri Jun 29 19:06:53 BST 2012

This is an automatically generated e-mail. To reply, visit:

Review request for kdelibs.


kjs: Range needs a prototype

some websites do stuff like

if (Range.prototype.someFunction !== undefined)
    Range.prototype.someFunction = ourOwnFunction;

the problem is we report no prototype, and thus we have
Range -> undefined.someFunction
which will always fail and throw an exception.

But Range should have a prototype, so this patch adds its valid prototype and makes some websites happy.


  khtml/ecma/kjs_range.cpp 500ebbd 




Bernd Buschinski

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the kde-core-devel mailing list