Concatenation of separate JS programs into one Program means that we do not use the correct strictness for them all if they differ.
We should read each Program in separately.
Additionally, prelude functions, such as those used by conrad for his global object setup may be shadowed by user-code functions that are hoisted above them.
Concatenation of separate JS programs into one Program means that we do not use the correct strictness for them all if they differ. We should read each Program in separately.
Additionally, prelude functions, such as those used by conrad for his global object setup may be shadowed by user-code functions that are hoisted above them.
https://github.com/resource-reasoning/jscert_dev/blob/8e82674f794a116cc58d72dcc7f1faa84f373e7a/interp/src/run_js.ml#L87 https://es5.github.io/#x10.1.1