knockout-3.0.0.js error loading file:

49 views
Skip to first unread message

colind...@gmail.com

unread,
Feb 14, 2014, 11:11:41 AM2/14/14
to js-test...@googlegroups.com
Hi

I'm trying to run tests against an object that uses knockout-3.0.0.js. In my configuration file I have included the js file under load

.
.
.
load:
- WebContent/lib/knockout-3.0.0.js
- WebContent/js/main/*.js
- WebContent/lib/sinon-1.7.3.js

test:
- WebContent/js/test/*.js
.
.
.

I get this error when running the tests against Firefox; "error loading file: /test/WebContent/lib/knockout-3.0.0.js:22: SyntaxError: missing ; before statement". I get similar errors when running against IE 11, Chrome and Safari.

I don't get any errors when including the js file nromally in a HTML page. When I revert to knockout-2.3.0.js, there is no error and I don't get this error when loaded other files such as sinon-1.7.3.js.

I'm not sure what the problem is, can the error be suppressed? Have I a setting problem? I don't think there is any major issue with knockout-3.0.0.js....

Thanks in advance
Reply all
Reply to author
Forward
0 new messages