MozRepl output includes additional data?

11 views
Skip to first unread message

kitno455

unread,
Aug 9, 2011, 4:52:10 PM8/9/11
to MozLab
I am running MozRepl with Firefox 3.6.18. The wiki says:

repl> repl.home()
[object ChromeWindow]

But when I run it, I see:

repl> repl.home()
[object ChromeWindow] — {repl: {…}, JSONstring: {…},
gProgressMeterPanel: {…}, gFindBar: {…}, FirebugContext: null,
annotationService: {…}, constructor: {…}, ...}

All of this additional information causes some of the automated tests
of the perl MozRepl object to fail, and the install must be manually
forced.

Did the output of MozRepl change, or is my FF setup causing this?

allan

Massimiliano Mirra

unread,
Aug 9, 2011, 8:25:41 PM8/9/11
to moz...@googlegroups.com
The tutorial is slightly out of date. Currently, the return value of an expression is passed to repl.represent() before being shown. The reason for that is that often simply calling .toString() on a value isn't descriptive enough.

Probably it would be easier for the the Perl library to use an ad-hoc machine interface in the form of a custom interactor (https://github.com/bard/mozrepl/wiki/Custom-interactors) instead of trying to cope with a user interface.



--
You received this message because you are subscribed to the Google Groups "MozLab" group.
To post to this group, send email to moz...@googlegroups.com.
To unsubscribe from this group, send email to mozlab+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mozlab?hl=en.




--
Massimiliano Mirra
Digital Coach @ digitalcoach.nu
Software Craftsman @ hyperstruct.net

Reply all
Reply to author
Forward
0 new messages