js-on-sx: fn.toString honours Function.prototype.toString overrides
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 41s

Two hardcoded paths returned the native marker regardless of user
override: js-invoke-function-method and the lambda branch of
js-to-string. Both now look up Function.prototype.toString via
js-dict-get-walk and invoke it on the function, falling back to
the native marker only if no override exists.
built-ins/String: 84/99 → 85/99. conformance.sh: 148/148.
This commit is contained in:
2026-05-08 12:07:55 +00:00
parent e97bdc4602
commit d51ae65bbb
4 changed files with 36 additions and 17 deletions

View File

@@ -1,26 +1,26 @@
{
"totals": {
"pass": 84,
"fail": 12,
"pass": 85,
"fail": 11,
"skip": 1,
"timeout": 3,
"total": 100,
"runnable": 99,
"pass_rate": 84.8
"pass_rate": 85.9
},
"categories": [
{
"category": "built-ins/String",
"total": 100,
"pass": 84,
"fail": 12,
"pass": 85,
"fail": 11,
"skip": 1,
"timeout": 3,
"pass_rate": 84.8,
"pass_rate": 85.9,
"top_failures": [
[
"Test262Error (assertion failed)",
10
9
],
[
"Timeout",
@@ -40,7 +40,7 @@
"top_failure_modes": [
[
"Test262Error (assertion failed)",
10
9
],
[
"Timeout",
@@ -56,6 +56,6 @@
]
],
"pinned_commit": "d5e73fc8d2c663554fb72e2380a8c2bc1a318a33",
"elapsed_seconds": 192.4,
"elapsed_seconds": 182.4,
"workers": 1
}