saghul / sjs

Skookum JS: a JavaScript runtime
http://sjs.saghul.net
MIT License
97 stars 13 forks source link

vm: skip shebang when running a file #26

Closed saghul closed 8 years ago

saghul commented 8 years ago

Since the shebang always needs to be the first line, we can probably get away with it by replacing the first two characters (assuming they are #!) with //. This way we don't alter the line count.

saghul commented 8 years ago

Fixed in 5f5c6dcefb01db384118c7d08c7dbe87ccdeae6e