Skip to content

Commit 95bebcf

Browse files
committed
refactor(core/assembler): process pending chunks inside try block
1 parent fef49f9 commit 95bebcf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/assembler/assembler.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export class Assembler {
6969
while (true) {
7070
const { done, value: node } = parser.next()
7171
if (done) {
72+
this.processPendingChunks()
7273
return node
7374
}
7475
this.collectErrors(context)
@@ -84,7 +85,6 @@ export class Assembler {
8485
finally {
8586
context.checkLabels()
8687
this.collectErrors(context)
87-
this.processPendings()
8888
}
8989
return null
9090
}
@@ -194,7 +194,7 @@ export class Assembler {
194194
})
195195
}
196196

197-
private processPendings(): void {
197+
private processPendingChunks(): void {
198198
this.pendings.forEach((chunk) => {
199199
const state = createAssemblerState(chunk.offset)
200200
AssemblerState.Provider({

0 commit comments

Comments
 (0)