Files
rose-ash/lib/js/test262-slice/functions/closure_ref.js
giles 9e568ad886 js-on-sx: baseline commit (278/280 unit, 148/148 slice, runner stub)
Initial commit of the lib/js/ tree and plans/ directory. A previous
session left template-string work in progress — 278/280 unit tests pass
(2 failing: tpl part-count off-by-one, escaped-backtick ident lookup).
test262-runner.py and scoreboard are placeholders (0/8 with 7 timeouts);
fixing the runner is the next queue item.
2026-04-23 19:42:16 +00:00

2 lines
126 B
JavaScript

function compose(f, g) { return x => f(g(x)); } let addOne = x => x + 1; let double = x => x * 2; compose(addOne, double)(10)