diff options
author | Mihai Bazon <mihai@bazon.net> | 2013-07-15 11:59:23 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2013-07-15 11:59:23 +0300 |
commit | 193049af197ee73275dced11289b9b6755f4f469 (patch) | |
tree | 1d2dc8ad8f2ca55874bc989c6fe27d55c9f6d737 | |
parent | 4a0bab0fa3fc6d69507e91fdf17322b808aff7e4 (diff) | |
download | tracifyjs-193049af197ee73275dced11289b9b6755f4f469.tar.gz tracifyjs-193049af197ee73275dced11289b9b6755f4f469.zip |
Revert previous patch, it was no good.
-rw-r--r-- | lib/parse.js | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/parse.js b/lib/parse.js index 35fd9c75..48ab2167 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -210,17 +210,17 @@ function is_token(token, type, val) { var EX_EOF = {}; -function tokenizer($TEXT, filename, position) { +function tokenizer($TEXT, filename) { var S = { text : $TEXT.replace(/\r\n?|[\n\u2028\u2029]/g, "\n").replace(/\uFEFF/g, ''), filename : filename, - pos : position && position.pos || 0, - tokpos : position && position.pos || 0, - line : position && position.line || 1, - tokline : position && position.line || 1, - col : position && position.col || 0, - tokcol : position && position.col || 0, + pos : 0, + tokpos : 0, + line : 1, + tokline : 0, + col : 0, + tokcol : 0, newline_before : false, regex_allowed : false, comments_before : [] @@ -591,8 +591,7 @@ function parse($TEXT, options) { strict : false, filename : null, toplevel : null, - expression : false, - position : { pos: 0, line: 1, col: 0 }, + expression : false }); var S = { |