test: $262 宿主对象最小绑定 + is not defined 判定白名单化

引擎侧:绑定 $262 宿主对象(evalScript/global/gc 可用,detachArrayBuffer/
createRealm/agent 抛 not supported 而非 ReferenceError),并加入编译期
已知全局表;引用 $262.* 的测试从全量 skip 转为真实执行。

runner 侧:is not defined 不再一票吞 skip——解析错误消息中的标识符名,
仅在缺失全局白名单($262/structuredClone/queueMicrotask)内才按能力
缺失跳过;其余 is not defined 按真实失败计入,修复后应转 PASS 的
测试恢复可见。
This commit is contained in:
2026-08-16 02:47:02 +08:00
parent f02fae4a1c
commit 4e2644016b
6 changed files with 304 additions and 28 deletions
+2
View File
@@ -126,6 +126,8 @@ const BUILTIN_GLOBALS: &[&str] = &[
"decodeURI",
"encodeURIComponent",
"decodeURIComponent",
// test262 宿主对象:编译期按已知全局解析,运行期由 VM 绑定(详见 bind_test262_host)。
"$262",
];
pub(crate) struct FieldBuffer {