console undefined error when running Rhino

289 views
Skip to first unread message

Ruprict

unread,
Apr 16, 2010, 10:24:54 AM4/16/10
to jspec
Hi,

I get

js: uncaught JavaScript runtime exception: ReferenceError: "console"
is not defined.

when I run the specs in Rhino. i am using Cygwin, so my guess is it's
not finding a js file that defines "console" However, I can't seem to
find where that is.

The specs run, but the output just looks a bit off:
←[1m
Passes: ←[0m←[32m4←[0m←[1m Failures: ←[0m←[31m0←[0m

←[1m My Restful Library get()←[0m
←[32m should be a function←[0m←[32m.←[0m

←[1m My Restful Library put()←[0m
←[32m should be a function←[0m←[32m.←[0m

←[1m My Restful Library post()←[0m
←[32m should be a function←[0m←[32m.←[0m

←[1m My Restful Library del()←[0m
←[32m should be a function←[0m←[32m.←[0m

Can someone point me to the file that defines the "console" var?

Thanks.

--
JSpec thanks you for your interest and support! To post simply reply
to this email.

documentation: http://jspec.info
unsubscribe: jspec+un...@googlegroups.com
group: http://groups.google.com/group/jspec

vision media [ Tj Holowaychuk ]

unread,
Apr 16, 2010, 11:43:50 AM4/16/10
to js...@googlegroups.com
if you cant fix it you could always just do:

    console = { log: function(){} }

etc
--
Tj Holowaychuk
Vision Media
President & Creative Lead

Glenn Goodrich

unread,
Apr 16, 2010, 11:59:42 AM4/16/10
to js...@googlegroups.com
Sure...just wasn't sure if I had farged something.


Reply all
Reply to author
Forward
0 new messages