From 04c71f1a5b90fa17878c4bc2c5cf19232db29175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nacho=20Codo=C3=B1er?= Date: Tue, 1 Apr 2025 19:40:25 +0200 Subject: [PATCH] prefer an arrow function --- packages/babel-compiler/babel-compiler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/babel-compiler/babel-compiler.js b/packages/babel-compiler/babel-compiler.js index d5e1f7437a..f4df7343c9 100644 --- a/packages/babel-compiler/babel-compiler.js +++ b/packages/babel-compiler/babel-compiler.js @@ -208,7 +208,7 @@ BCp.processOneFileForTarget = function (inputFile, source) { } try { - var result = (function getTranspilerCompilation() { + var result = (() => { const packagesSkipSwc = []; const fileSkipSwc = []; // top level await @@ -271,7 +271,7 @@ BCp.processOneFileForTarget = function (inputFile, source) { } return compilation; - }).call(this); + })(); } catch (e) { if (e.loc) { // Error is from @babel/parser.