Move encapsulated environment out of ScriptFnDef.
This commit is contained in:
@@ -3629,8 +3629,6 @@ impl Engine {
|
||||
access,
|
||||
params,
|
||||
body,
|
||||
#[cfg(not(feature = "no_module"))]
|
||||
environ: None,
|
||||
#[cfg(feature = "metadata")]
|
||||
comments: comments.into_iter().collect(),
|
||||
})
|
||||
@@ -3791,8 +3789,6 @@ impl Engine {
|
||||
access: crate::FnAccess::Public,
|
||||
params,
|
||||
body: body.into(),
|
||||
#[cfg(not(feature = "no_module"))]
|
||||
environ: None,
|
||||
#[cfg(not(feature = "no_function"))]
|
||||
#[cfg(feature = "metadata")]
|
||||
comments: Box::default(),
|
||||
|
Reference in New Issue
Block a user