okojo-test262
GitHub专注于Okajo引擎的Test262合规性工作,处理测试失败、运行合规扫描及修复标准对齐问题。适用于涉及Test262Runner、跳过列表或缓存的场景,排除普通实现与重构。
Trigger Scenarios
Install
npx skills add akeit0/okojo --skill okojo-test262 -g -y
SKILL.md
Frontmatter
{
"name": "okojo-test262",
"description": "Run and continue Okojo Test262 compliance work. Use only when the request involves Test262, Test262Runner, compliance sweeps, failing Test262 cases, the passed cache, or SkipList. Do not use for ordinary Okojo implementation, refactoring, review, or debugging."
}
Okojo Test262
Use this skill only for Test262-driven work in tools/Test262Runner and the engine/test files needed to resolve a selected Test262 failure. Ordinary engine work belongs to the general Okojo development workflow.
Core policy
Fix standards-aligned behavior.
Do not prioritize deprecated/legacy behavior unless explicitly re-approved. Treat these as intentionally unsupported by default:
- direct-eval-specific semantics
with- legacy
__proto__ - deprecated legacy accessor APIs
Function.prototype.arguments/Function.prototype.callerarguments.callee
For these, prefer narrow intended Test262 skips with a clear reason over regressing core paths.
Do not add a skip merely to make a run green. A skip requires an intentionally unsupported feature or an explicit user decision.
Workflow
- reproduce the exact Test262 case
- classify it as engine/compiler/runtime behavior or intentionally unsupported coverage
- compare V8 for language/compiler/VM behavior or Node for built-in/runtime behavior
- implement the narrow root-cause fix
- add a focused regression under
tests/Okojo.Tests - rebuild the runner before trusting an exact rerun
- rerun the exact case, nearby coverage, and the requested continuation batch
Focused engine loop
dotnet build tests/Okojo.Tests/Okojo.Tests.csproj -c Release /p:UseSharedCompilation=false
dotnet test tests/Okojo.Tests/Okojo.Tests.csproj -c Release --no-build --filter <Name>
When the runner is involved:
dotnet build tools/Test262Runner/Test262Runner.csproj -c Release /p:UseSharedCompilation=false
Test262 runner
Show help:
dotnet run --project tools/Test262Runner/Test262Runner.csproj -c Release -- --help
Common continuation pattern:
dotnet run --project tools/Test262Runner/Test262Runner.csproj -c Release -- --max-tests 30 --full-path --skip-passed
Array.prototype sweep example:
dotnet run --project tools/Test262Runner/Test262Runner.csproj -c Release -- --max-tests 30 --category built-ins --filter Array/prototype --full-path --skip-passed
Useful runner notes:
--skip-passeduses the local passed cache- rebuild the runner after runtime/compiler changes before trusting exact reruns
SkipList.cscontains intentional exclusions- do not run a broad sweep when an exact or category-filtered rerun answers the current question
Editing guidance
- Prefer minimal, local fixes.
- Add a focused regression test for each fix.
- Do not revert unrelated user changes.
- Do not widen policy support accidentally just to satisfy a single Test262 file.
Version History
-
0.2.0-preview.2
Current 2026-09-22 11:31
从通用开发工作流中分离出专门的 Test262 合规性任务范围;新增针对 Test262 runner 的具体命令示例(如 --skip-passed, category sweep)和更严格的跳过策略说明。
- 0.1.2-preview1 2026-07-24 22:32


