@next-core/cook 2.4.3 → 2.4.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/cjs/cook.js +4 -2
- package/dist/cjs/cook.js.map +1 -1
- package/dist/esm/cook.js +4 -2
- package/dist/esm/cook.js.map +1 -1
- package/package.json +6 -6
package/dist/esm/cook.js
CHANGED
|
@@ -12,7 +12,7 @@ export function __dev_only_getGlobalExecutionContextStack() {
|
|
|
12
12
|
|
|
13
13
|
/** For next-core internal usage only. */
|
|
14
14
|
export function cook(rootAst, codeSource) {
|
|
15
|
-
var _hooks$
|
|
15
|
+
var _hooks$beforeEvaluate4;
|
|
16
16
|
let {
|
|
17
17
|
rules,
|
|
18
18
|
debug,
|
|
@@ -1137,6 +1137,8 @@ export function cook(rootAst, codeSource) {
|
|
|
1137
1137
|
|
|
1138
1138
|
// https://tc39.es/ecma262/#sec-runtime-semantics-namedevaluation
|
|
1139
1139
|
function NamedEvaluation(node, name) {
|
|
1140
|
+
var _hooks$beforeEvaluate3;
|
|
1141
|
+
(_hooks$beforeEvaluate3 = hooks.beforeEvaluate) === null || _hooks$beforeEvaluate3 === void 0 || _hooks$beforeEvaluate3.call(hooks, node);
|
|
1140
1142
|
// No ParenthesizedExpression in ESTree.
|
|
1141
1143
|
switch (node.type) {
|
|
1142
1144
|
case "FunctionExpression":
|
|
@@ -1565,7 +1567,7 @@ export function cook(rootAst, codeSource) {
|
|
|
1565
1567
|
if (expressionOnly) {
|
|
1566
1568
|
return GetValue(unwind(Evaluate(rootAst)));
|
|
1567
1569
|
}
|
|
1568
|
-
(_hooks$
|
|
1570
|
+
(_hooks$beforeEvaluate4 = hooks.beforeEvaluate) === null || _hooks$beforeEvaluate4 === void 0 || _hooks$beforeEvaluate4.call(hooks, rootAst);
|
|
1569
1571
|
ThrowIfFunctionIsInvalid(rootAst);
|
|
1570
1572
|
const [fn] = collectBoundNames(rootAst);
|
|
1571
1573
|
// Create an immutable binding for the root function.
|