segment-boneyard / nightmare

A high-level browser automation library.
https://open.segment.com
19.55k stars 1.08k forks source link

Unexpected identifier #225

Closed thucnc closed 9 years ago

thucnc commented 9 years ago

Hello, I'm a newbie of nightmare, got this error: "Syntax error: unexpected identifier" for the below code var nightmare = Nightmare(); function login () { var a = yield nightmare .goto('http://somewebpage.com') } Anyone can help.

matthewmueller commented 9 years ago

Probably need node --harmony index.js

thucnc commented 9 years ago

Thanks Matt, now I have a problem running nightmarejs on linux server (it does not do anything even throw exception/error). I guess I have the same problem as issue #228 . Please help

reinpk commented 9 years ago

closing as a dupe of #228