Closed yorinasub17 closed 8 months ago
I've committed this change f3e1c38afb8f7f2530d9b5ace18eaef4f0871a7a which resolves the issue using a preference for globalThis
. It also brings Acorn in line with JS-Interpreter for global object detection. Thanks!
Thanks for bringing this in!
This increases compatibility of the included
acorn.js
file to support environments that don't support a rootthis
object (e.g., Deno) by falling back toglobalThis
ifthis
is not defined.When using the base
JS-Interpreter
with Deno, the following error happens:This patch resolves the error.