Re:WebAssembly support now shipping in all major browsers
by askvictor on Tuesday November 14, 2017 @09:33PM
(#15701052)
And yet somehow the web doesn't break when one programmer uses \r\n while another uses \n. What was your original point about line terminators in this context?
[ Parent
| on HN ]
Re:WebAssembly support now shipping in all major browsers
by austincheney on Wednesday November 15, 2017 @06:29AM
(#15703022)
I suppose that goes to how the language defines line termination and whether that language is OS aware. JS is completely independent of its execution context. Python may achieve this as well, and if so, then I am wrong in my thoughts about Python.
Here is how JavaScript does this:
* https://www.ecma-international.org/ecma-262/#sec-source-text
* https://www.ecma-international.org/ecma-262/#sec-line-termin...
ASI is defined in the spec here: https://www.ecma-international.org/ecma-262/#sec-automatic-s...