@next-core/brick-utils 2.39.1 → 2.39.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist/index.bundle.js +2 -6
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +2 -6
- package/dist/index.esm.js.map +1 -1
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -2769,9 +2769,7 @@ function cook(rootAst, codeSource) {
|
|
|
2769
2769
|
var name = functionExpression.id.name;
|
|
2770
2770
|
var funcEnv = new DeclarativeEnvironment(scope);
|
|
2771
2771
|
funcEnv.CreateImmutableBinding(name, false);
|
|
2772
|
-
var closure = OrdinaryFunctionCreate(functionExpression,
|
|
2773
|
-
// functionExpression.body,
|
|
2774
|
-
funcEnv, true);
|
|
2772
|
+
var closure = OrdinaryFunctionCreate(functionExpression, funcEnv, true);
|
|
2775
2773
|
funcEnv.InitializeBinding(name, closure);
|
|
2776
2774
|
return closure;
|
|
2777
2775
|
} else {
|
|
@@ -2789,9 +2787,7 @@ function cook(rootAst, codeSource) {
|
|
|
2789
2787
|
} // https://tc39.es/ecma262/#sec-ordinaryfunctioncreate
|
|
2790
2788
|
|
|
2791
2789
|
|
|
2792
|
-
function OrdinaryFunctionCreate(sourceNode,
|
|
2793
|
-
// body: BlockStatement | Expression,
|
|
2794
|
-
scope, isConstructor) {
|
|
2790
|
+
function OrdinaryFunctionCreate(sourceNode, scope, isConstructor) {
|
|
2795
2791
|
var F = function () {
|
|
2796
2792
|
// eslint-disable-next-line prefer-rest-params
|
|
2797
2793
|
return CallFunction(F, arguments);
|