Repository navigation
test262 built-ins/Function — 23 (self-contained worklist) #5846
Description
Self-contained worklist — 23 failing. Snapshot 2026-07-01 full sweep (perry 0.5.1209, node v26.3.0). Everything you need is in this issue; no history to read, no re-measure to start.
Function.prototype.toString NativeFunction-syntax, bind length, reflective Function. Crate: perry-runtime, perry-codegen.
Setup (any box)
git clone https://github.com/PerryTS/perry && cd perry
cargo build --release -p perry -p perry-runtime-static -p perry-stdlib-static
git clone --depth 1 https://github.com/tc39/test262 vendor/test262 # checkout test-compat/test262/pinned-sha.txt
# node on PATH (differential oracle). See test-compat/test262/README.md.Measure/verify: scripts/test262_subset.py --root vendor/test262 --dir built-ins/Function --jobs 8 (the .failures.txt sidecar lists failures; diff before/after for zero-regression).
Failure reasons
| n | reason |
|---|---|
| 5 | Uncaught exception: Conforms to NativeFunction Syntax: |
| 3 | Uncaught exception: Expected SameValue(«function () { [ |
| 2 | Uncaught exception: Expected a TypeError to be thrown b |
| 2 | Uncaught exception: f() must return "mars" Expected Sam |
| 1 | Uncaught exception: f(, 1, {toString: function() {retur |
| 1 | Uncaught exception: The value of Function.indicator is |
| 1 | Uncaught exception: g() must return "mars" Expected Sam |
| 1 | Uncaught exception: Function.prototype.hasOwnProperty(" |
| 1 | Uncaught exception: The value of 'typeof obj.apply' is |
| 1 | TypeError: value is not a function |
| 1 | Uncaught exception: Expected a Test262Error to be throw |
| 1 | Uncaught exception: obj.property Expected SameValue(«un |
All 23 failing cases (path — reason)
built-ins/Function/15.3.5.4_2-13gs.js Uncaught exception: Expected a TypeError to be thrown but no exception was throw
built-ins/Function/S15.3.2.1_A2_T6.js Uncaught exception: f(, 1, {toString: function() {return "arg" + (++i)}}) must r
built-ins/Function/S15.3.3_A2_T2.js Uncaught exception: The value of Function.indicator is expected to be 1 Expected
built-ins/Function/S15.3_A3_T2.js Uncaught exception: g() must return "mars" Expected SameValue(«undefined», «"mar
built-ins/Function/S15.3_A3_T5.js Uncaught exception: f() must return "mars" Expected SameValue(«undefined», «"mar
built-ins/Function/S15.3_A3_T6.js Uncaught exception: f() must return "mars" Expected SameValue(«undefined», «"mar
built-ins/Function/internals/Construct/base-ctor-revoked-proxy.js Uncaught exception: Expected a TypeError to be thrown but no exception was throw
built-ins/Function/prototype/S15.3.4_A4.js Uncaught exception: Function.prototype.hasOwnProperty("valueOf") must return fal
built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js Uncaught exception: The value of `typeof obj.apply` is expected to be "function"
built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js TypeError: value is not a function
built-ins/Function/prototype/apply/get-index-abrupt.js Uncaught exception: Expected a Test262Error to be thrown but no exception was th
built-ins/Function/prototype/bind/15.3.4.5-6-6.js Uncaught exception: obj.property Expected SameValue(«undefined», «12») to be tru
built-ins/Function/prototype/bind/S15.3.4.5_A5.js Uncaught exception: Object.prototype.toString.call(construct(Date, [1957, 4, 27]
built-ins/Function/prototype/bind/instance-construct-newtarget-boundtarget-bound.js Uncaught exception: Expected SameValue(«function () { [native code] }», «functio
built-ins/Function/prototype/bind/instance-construct-newtarget-self-new.js Uncaught exception: Expected SameValue(«function () { [native code] }», «functio
built-ins/Function/prototype/bind/instance-construct-newtarget-self-reflect.js Uncaught exception: Expected SameValue(«function () { [native code] }», «functio
built-ins/Function/prototype/bind/instance-length-default-value.js TypeError: Cannot convert undefined or null to object
built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js Uncaught exception: The value of `typeof obj.call` is expected to be "function"
built-ins/Function/prototype/toString/GeneratorFunction.js Uncaught exception: Conforms to NativeFunction Syntax: "undefined" (function* an
built-ins/Function/prototype/toString/method-computed-property-name.js Uncaught exception: Conforms to NativeFunction Syntax: "undefined" ([ { a(){} }.
built-ins/Function/prototype/toString/proxy-class.js Uncaught exception: Conforms to NativeFunction Syntax: "undefined"
built-ins/Function/prototype/toString/symbol-named-builtins.js Uncaught exception: Conforms to NativeFunction Syntax: "undefined"
built-ins/Function/prototype/toString/unicode.js Uncaught exception: Conforms to NativeFunction Syntax: "function \\u0061(\\u{62}
Workflow
Pick a coherent single-root subcluster, localize (cargo run --release -- f.ts --trace hir --focus <fn> / --trace llvm), fix, verify listed cases pass AND re-run the slice for zero regressions. Code-only PR (no Cargo.toml/Cargo.lock version bump, no CLAUDE.md Current-Version, no CHANGELOG — maintainer folds metadata). cargo fmt --all -- --check + bash scripts/check_file_size.sh must pass (files < 2000 lines). Reference this issue. Never reference internal infrastructure hostnames.
Activity
fix(hir,runtime): #5846 — 7 built-ins/Function test262 fixes (#5883)
proggeramlug commentedon Jul 3, 2026
Refreshed after the 2026-07-03 full sweep (parity 96.3%). Superseded by #5908 — same Function worklist with current counts, folded-in regressions, and the complete failing-test list inline.