Files
rose-ash/lib/js/runtime.sx
giles 92c1fc72a5 js-on-sx: Function.prototype.call/apply/bind
Adds js-invoke-function-method dispatched from js-invoke-method when the
receiver is a JS function (lambda/function/component/callable-dict) and the
method name is one of call/apply/bind/toString/name/length.

call and apply bind this around a single call; bind returns a closure with
prepended args. toString returns the native-code placeholder.

6 unit tests, 450/452 total (Array.prototype.push.call with arrayLike still
fails — tracked as the 455x 'Not callable array-like' scoreboard item which
needs array methods to treat dict-with-length as a list).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 06:27:18 +00:00

74 KiB