madrobby / semicolon.js

A more secure. stable and reliable version of vapor.js
GNU General Public License v3.0
229 stars 28 forks source link

Semiscript showing errors on wrong line and column #15

Open jacksonwillis opened 12 years ago

jacksonwillis commented 12 years ago

Hello. When I ran this script,

f
;
;
;

I got this error:

Syntax error at row `0' column `0'.

when it is actually line 1, column 1. And when I do this:

;
;f
;
;

I got this error:

Syntax error at row `1' column `1'.

where the error was line 2, column 2.

This is making it impossible for me to debug my programs efficiently.

tomByrer commented 12 years ago

JavaScript starts counting from 0, since 0 is the first number :)