@lbljeffmo require("../foo.js") currently means "require a module" - w/ .mjs it means "require a CJS module"
-
-
@wycats its possible to parse a file, detect, and lazy re-interpret as strict/module vs not. V8 wasnt willing IIRC@sebmarkbage -
@lbljeffmo@wycats They can do it eagerly if they chose a different parsing rules. If that's in V8 or not is an impl detail to solve. -
@sebmarkbage can't do it eagerly w/o double parse@wycats -
@lbljeffmo@wycats Only if there is ambiguity, so chose one that isn't ambiguous but incompatible with Script vs FunctionBody. New spec. -
@sebmarkbage I overlooked "Function" in your 1st tweet. This could maybe work@wycats
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.