Jan Krems (2017-05-19T01:44:43.000Z)
Tried to search past proposals for this but couldn't find one The short
version: Most editors / syntax highlighting engines, non-engine parsers,
node.js - they all support a leading shebang line in .js files. With the
advent of ES6 modules it's the final holdout where node has to patch the
script source to make V8 parse the code (and thus producing a mismatch
between what's on disk and what the engine sees).

Is there a downside to allow any script or module to begin with the magical
#! bytes? It should not break existing scripts because it's invalid syntax
today & the parse overhead should be fairly limited.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20170519/1f9aca2b/attachment.html>
jan.krems at gmail.com (2017-05-19T01:45:48.056Z)
Tried to search past proposals for this but couldn't find one. The short
version: Most editors / syntax highlighting engines, non-engine parsers,
node.js - they all support a leading shebang line in .js files. With the
advent of ES6 modules it's the final holdout where node has to patch the
script source to make V8 parse the code (and thus producing a mismatch
between what's on disk and what the engine sees).

Is there a downside to allow any script or module to begin with the magical
#! bytes? It should not break existing scripts because it's invalid syntax
today & the parse overhead should be fairly limited.