[Voiceglue] Spidermonkey issue..?
James Green
james.green at mjog.com
Thu Apr 8 10:53:59 UTC 2010
Hi,
Apparently Voiceglue uses Spidermonkey to provide JavaScript. In our
case we have 1.8.1 [1] which provides a JSON.stringify() method [2].
Using this within voiceglue doesn't appear to work however:
11:40:58:191 EROR OPEN_VXI scaraman callid=[7995]
|139901345446224|7995|SEVERE|swi:SBjsi|501|SBjsi: ECMAScript engine
exception|errmsg=ReferenceError: JSON is not
defined|line=139899969732609|linetxt=|tokentxt=
Snippet from the script:
<script>var packet = JSON.stringify(document.actions);</script>
I was rather hoping not to have to import a 3rd party script, so if I'm
doing something wrong could someone kindly point out the problem?
Thanks,
James
[1] $ dpkg -l | grep libmoz
ii libmozjs-dev
1.8.1.16+nobinonly-0ubuntu1 Development files for the Mozilla
SpiderMonk
ii libmozjs0d
1.8.1.16+nobinonly-0ubuntu1 The Mozilla SpiderMonkey JavaScript
library
[2] https://developer.mozilla.org/en/Using_native_JSON
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.voiceglue.org/pipermail/voiceglue/attachments/20100408/25d11572/attachment.html>
More information about the Voiceglue
mailing list