每次vs code调试,我都会勾选 断点→所有异常
但是总莫名其妙的报以下三个错误.
同时生成的html游戏文件也会卡在进度条无法运行.
请大神帮我看看是怎么回事.
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
第一个错误:
============================================================
try {
// Safari <= 5.1.2 and FF 3.1b1 allow unescaped tabs in strings.
parseSupported = !parse(’"\t"’);
=================错误点↑=====================================
错误信息:
============================================================
发生异常: SyntaxError
SyntaxError: Unexpected token in JSON at position 1
at parse ()
at has (http://localhost:7456/socket.io/socket.io.js:6250:37)
at has (http://localhost:7456/socket.io/socket.io.js:6164:46)
at http://localhost:7456/socket.io/socket.io.js:6280:8
at Object.47 (http://localhost:7456/socket.io/socket.io.js:6969:2)
at s (http://localhost:7456/socket.io/socket.io.js:1:540)
at http://localhost:7456/socket.io/socket.io.js:1:591
at Object.44…/binary (http://localhost:7456/socket.io/socket.io.js:5694:12)
at s (http://localhost:7456/socket.io/socket.io.js:1:540)
at http://localhost:7456/socket.io/socket.io.js:1:591
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
第二个错误:
============================================================
try {
// FF 4.0 and 4.0.1 allow leading + signs and leading
// decimal points. FF 4.0, 4.0.1, and IE 9-10 also allow
// certain octal literals.
parseSupported = parse(“01”) !== 1;
==================错误点↑====================================
错误信息:
============================================================
发生异常: SyntaxError
SyntaxError: Unexpected number in JSON at position 1
at parse ()
at has (http://localhost:7456/socket.io/socket.io.js:6257:38)
at has (http://localhost:7456/socket.io/socket.io.js:6164:46)
at http://localhost:7456/socket.io/socket.io.js:6280:8
at Object.47 (http://localhost:7456/socket.io/socket.io.js:6969:2)
at s (http://localhost:7456/socket.io/socket.io.js:1:540)
at http://localhost:7456/socket.io/socket.io.js:1:591
at Object.44…/binary (http://localhost:7456/socket.io/socket.io.js:5694:12)
at s (http://localhost:7456/socket.io/socket.io.js:1:540)
at http://localhost:7456/socket.io/socket.io.js:1:591
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
第三个错误:
============================================================
try {
// FF 4.0, 4.0.1, and Rhino 1.7R3-R4 allow trailing decimal
// points. These environments, along with FF 3.1b1 and 2,
// also allow trailing commas in JSON objects and arrays.
parseSupported = parse(“1.”) !== 1;
==================错误点↑====================================
错误信息:
============================================================
发生异常: SyntaxError
SyntaxError: Unexpected end of JSON input
at parse ()
at has (http://localhost:7456/socket.io/socket.io.js:6265:38)
at has (http://localhost:7456/socket.io/socket.io.js:6164:46)
at http://localhost:7456/socket.io/socket.io.js:6280:8
at Object.47 (http://localhost:7456/socket.io/socket.io.js:6969:2)
at s (http://localhost:7456/socket.io/socket.io.js:1:540)
at http://localhost:7456/socket.io/socket.io.js:1:591
at Object.44…/binary (http://localhost:7456/socket.io/socket.io.js:5694:12)
at s (http://localhost:7456/socket.io/socket.io.js:1:540)
at http://localhost:7456/socket.io/socket.io.js:1:591
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■