Review Request 108675: kjs: Implement Function.prototype.bind

Bernd Buschinski b.buschinski at
Fri Feb 1 00:29:01 GMT 2013

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

(Updated Feb. 1, 2013, 12:29 a.m.)

Review request for kdelibs.


Protect the pointers and use callAsFunction instead of call, because callAsFunction is virtual


kjs: Implement Function.prototype.bind
following ECMAScript Edition 5.1r6

The only tiny difference is that the "thisArg" can not be null or undefined.
As we call use null or undefined as thisObject in call.
So, like in, I use the global object instead.

NOTE: this patch also depends on Object.defineOwnProperty

Diffs (updated)

  kjs/function.h 5dbbfb2 
  kjs/function.cpp 6263b36 
  kjs/function_object.h ebcb937 
  kjs/function_object.cpp 76f55cb 



passes all Function.prototype.bind ecmascript testcases and does not introduce regressions.


Bernd Buschinski

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

More information about the kde-core-devel mailing list