fix: eval 代码顶层函数声明撞不可写全局内置——sloppy 编译期首指令 TypeError、strict 函数声明不落全局

This commit is contained in:
2026-09-13 09:05:54 +00:00
parent a98d5251e1
commit 1fdb7aca2d
6 changed files with 252 additions and 2 deletions
+1 -1
View File
@@ -490,7 +490,7 @@ fn eval_family_excluded(path: &str) -> Option<&'static str> {
let is_direct = path.contains("eval-code/direct/");
let common = [
"declare-arguments", // 直接 eval 的 arguments 语义族(档 3)
"non-definable", // 与既有不可配置全局属性冲突(DEFINE_GLOBAL_PROP 静默跳过,不抛)
"non-definable-global-var", // CanDeclareGlobalVar(var 面)c:false 语义与全局描述符面裁决绑定
"this-value-func", // 调用者 this 传递(档 3)
"new.target", // new.target 语义(档 3)
"strict-caller", // 严格调用者传播(档 3)