mozilla-spidermonkey / jsparagus

Experimental JS parser-generator project.
Other
439 stars 20 forks source link

Handle new.target (fixed #660) #661

Closed arai-a closed 2 years ago

arai-a commented 2 years ago

ImmutableScriptFlagsEnum::FunctionHasNewTargetBinding must be set for lazy function if it contains new.target.

jsparagus doesn't support new.target, but the fallback happens only when delazifying, and the compilation of the enclosing script finishes successfully, and not-setting the flag causes wrong delazification.