@@ -108,7 +108,7 @@ export class DataSchemaCompiler {
108108
109109 const transpile = async ( ) => {
110110 let cubeNames ;
111- let cubeSymbolsNames ;
111+ let cubeSymbols ;
112112
113113 if ( getEnv ( 'transpilationWorkerThreads' ) ) {
114114 cubeNames = Object . keys ( this . cubeDictionary . byId ) ;
@@ -118,7 +118,7 @@ export class DataSchemaCompiler {
118118 // Communication between main and worker threads uses
119119 // The structured clone algorithm (@see https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm)
120120 // which doesn't allow passing any function objects, so we need to sanitize the symbols.
121- cubeSymbolsNames = Object . fromEntries (
121+ cubeSymbols = Object . fromEntries (
122122 Object . entries ( this . cubeSymbols . symbols )
123123 . map (
124124 ( [ key , value ] ) => [ key , Object . fromEntries (
@@ -141,7 +141,7 @@ export class DataSchemaCompiler {
141141 ( _ , _i ) => this . transpileJsFile (
142142 dummyFile ,
143143 errorsReport ,
144- { cubeNames, cubeSymbolsNames , transpilerNames, contextSymbols : CONTEXT_SYMBOLS }
144+ { cubeNames, cubeSymbols , transpilerNames, contextSymbols : CONTEXT_SYMBOLS }
145145 ) ,
146146 ) ;
147147 await Promise . all ( warmups ) ;
@@ -205,15 +205,15 @@ export class DataSchemaCompiler {
205205 }
206206 }
207207
208- async transpileJsFile ( file , errorsReport , { cubeNames, cubeSymbolsNames , contextSymbols, transpilerNames } ) {
208+ async transpileJsFile ( file , errorsReport , { cubeNames, cubeSymbols , contextSymbols, transpilerNames } ) {
209209 try {
210210 if ( getEnv ( 'transpilationWorkerThreads' ) ) {
211211 const data = {
212212 fileName : file . fileName ,
213213 content : file . content ,
214214 transpilers : transpilerNames ,
215215 cubeNames,
216- cubeSymbolsNames ,
216+ cubeSymbols ,
217217 contextSymbols,
218218 } ;
219219
0 commit comments