2

我正在丑化一个 JS 文件,刚刚开始获取

DEBUG: { message: 'Unexpected token: name (a)',
  line: 1,
  col: 17726,
  pos: 17726

我需要遵循哪些调试步骤来跟踪它?

不用说,我已经尝试过搜索“name”和“(a)”等显而易见的东西,但它们都没有出现在文件中。由于我的输入文件是漂亮的 JS,因此查看“line:1 col:17726”所指的内容也会有所帮助。

4

1 回答 1

0

Turns out the problem was the final line of one of the files didn't end with a CR. Thus, it and the first line on the following file were being concatenated into a single line.

于 2016-12-03T21:58:11.857 回答