@next-core/brick-utils 2.28.4 → 2.28.5

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/dist/index.esm.js CHANGED
@@ -1289,6 +1289,8 @@ function cook(rootAst, codeSource, {
1289
1289
  globalVariables = {},
1290
1290
  hooks = {}
1291
1291
  } = {}) {
1292
+ var _hooks$beforeEvaluate3;
1293
+
1292
1294
  var expressionOnly = rootAst.type !== "FunctionDeclaration";
1293
1295
  var rootEnv = new DeclarativeEnvironment(null);
1294
1296
  var rootContext = new ExecutionContext();
@@ -2435,9 +2437,9 @@ function cook(rootAst, codeSource, {
2435
2437
 
2436
2438
 
2437
2439
  function CallFunction(closure, args) {
2438
- var _hooks$beforeEvaluate3;
2440
+ var _hooks$beforeCall;
2439
2441
 
2440
- (_hooks$beforeEvaluate3 = hooks.beforeEvaluate) === null || _hooks$beforeEvaluate3 === void 0 ? void 0 : _hooks$beforeEvaluate3.call(hooks, closure[SourceNode]);
2442
+ (_hooks$beforeCall = hooks.beforeCall) === null || _hooks$beforeCall === void 0 ? void 0 : _hooks$beforeCall.call(hooks, closure[SourceNode]);
2441
2443
  PrepareForOrdinaryCall(closure);
2442
2444
  var result = OrdinaryCallEvaluateBody(closure, args);
2443
2445
  executionContextStack.pop();
@@ -2885,6 +2887,7 @@ function cook(rootAst, codeSource, {
2885
2887
  return GetValue(Evaluate(rootAst));
2886
2888
  }
2887
2889
 
2890
+ (_hooks$beforeEvaluate3 = hooks.beforeEvaluate) === null || _hooks$beforeEvaluate3 === void 0 ? void 0 : _hooks$beforeEvaluate3.call(hooks, rootAst);
2888
2891
  ThrowIfFunctionIsInvalid(rootAst);
2889
2892
  var [fn] = collectBoundNames(rootAst); // Create an immutable binding for the root function.
2890
2893