use strict

This commit is contained in:
Dmitry Vasilev
2024-02-13 13:39:52 +08:00
parent 1139151ef2
commit c5b2e403c8

View File

@@ -460,12 +460,15 @@ export const eval_modules = (
'__create_array',
'__create_object',
'"use strict";\n' +
/* Add dummy __call_id for toplevel. It does not make any sence
* (toplevel is executed only once unlike function), we only add it
* because we dont want to codegen differently for if statements in
* toplevel and if statements within functions*/
'const __call_id = __cxt.call_counter;' +
'let __await_state;' +
'let __await_state, __obj, __fn;' +
code
)
}