0
PhantomJS newb在這裏,試圖與Karma一起使用PhantomJS,以便我可以在Jenkins上運行瀏覽器測試。支持與PhantomJS的JS運行時
我得到PhantomJS這個明顯的錯誤
PhantomJS 2.1.1 (Mac OS X 0.0.0) ERROR
SyntaxError: Expected an identifier but found 'handlePageRequest' instead
at public/app.js:45
使用讓變量聲明,像這樣的時候:
let handlePageRequest = {};
我怎麼能告訴PhantomJS解釋的JavaScript例如Chrome或Mozilla會的最新版本?