mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-27 12:11:12 +08:00
feat: 函数名登记为作用域内不可写绑定并按帧槽写入函数对象
This commit is contained in:
@@ -271,6 +271,7 @@ impl Emitter {
|
||||
&field_value_exprs,
|
||||
&extra_upvalue_names,
|
||||
true,
|
||||
None,
|
||||
)?
|
||||
} else {
|
||||
let mut module = self.compile_function_body_with_field_hooks(
|
||||
@@ -285,6 +286,7 @@ impl Emitter {
|
||||
&field_value_exprs,
|
||||
&extra_upvalue_names,
|
||||
true,
|
||||
None,
|
||||
)?;
|
||||
if is_derived {
|
||||
module.insts.clear();
|
||||
|
||||
@@ -138,6 +138,7 @@ impl Emitter {
|
||||
method_value.generator,
|
||||
method_value.r#async,
|
||||
true,
|
||||
None,
|
||||
)?;
|
||||
ctx.in_instance_method = saved_instance;
|
||||
ctx.in_static_method = saved_static;
|
||||
|
||||
Reference in New Issue
Block a user