You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.
Some node modules use octal literals, causing errors when node runs in strict mode. Although these node libraries could be patched, it might be useful to include a runtime flag to disable strict mode. Maybe, maybe not. Adding this per Slack request.
The text was updated successfully, but these errors were encountered:
Stopped compiling the Lumo binary with a static, compile time --use-strict option. To note: --use-strict is still the default that Lumo ships with, but it is now overridable at runtime via Node's own API:
Lumo 1.0.0
ClojureScript 1.9.293
Exit: Control+D or :cljs/quit or exit
cljs.user=> (js*"066")
SyntaxError: Octal literals are not allowed in strict mode.
cljs.user=> (defv8 (js/require"v8"))
#'cljs.user/v8
cljs.user=> (.setFlagsFromString v8 "--no-use_strict")
nil
cljs.user=> (js*"066")
54
cljs.user=>
I know this is a closed topic, but is there a place where these kind of thing get documented?
Seems like a subtle but important feature that deserves more visibility.
Some node modules use octal literals, causing errors when node runs in strict mode. Although these node libraries could be patched, it might be useful to include a runtime flag to disable strict mode. Maybe, maybe not. Adding this per Slack request.
The text was updated successfully, but these errors were encountered: