Skip to content

Commit 0c5a5da

Browse files
committed
remove now unused blockStatementIndex
1 parent d8a9b32 commit 0c5a5da

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/processScript.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,13 +236,8 @@ export async function processScript(script: string) {
236236
}
237237
})).code || ""
238238

239-
let blockStatementIndex: number
240-
241-
if (script.startsWith("function "))
242-
blockStatementIndex = getFunctionBodyStart(script)
243-
else {
239+
if (!script.startsWith("function ")) {
244240
script = `function script(context, args) {\n${script}\n}`
245-
blockStatementIndex = 31
246241
srcLength += 24
247242
}
248243

0 commit comments

Comments
 (0)