mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 18:51:13 +08:00
fix: eval 代码顶层函数声明撞不可写全局内置——sloppy 编译期首指令 TypeError、strict 函数声明不落全局
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user