Skip to content
This repository has been archived by the owner on Aug 18, 2018. It is now read-only.

quit() doesn't work #42

Open
whoward opened this issue Jun 27, 2011 · 1 comment
Open

quit() doesn't work #42

whoward opened this issue Jun 27, 2011 · 1 comment

Comments

@whoward
Copy link

whoward commented Jun 27, 2011

Seems like any way I try to call quit() it produces the same stack trace.

I'm running Johnson 1.2.0

$ johnson -e "quit(42)"
__noSuchMethod__("exit",[object Array])@:0: #<SystemExit: exit> at (none):25 (Johnson::Error)
    from quit(42)@none:25
    from @-e:1
    from /home/will/.rvm/gems/ree-1.8.7-2010.02@bridge-dev/gems/johnson-1.2.0/lib/johnson/spidermonkey/js_land_proxy.rb:16:in `evaluate_compiled_script_without_clearing_traps'
    from /home/will/.rvm/gems/ree-1.8.7-2010.02@bridge-dev/gems/johnson-1.2.0/lib/johnson/spidermonkey/runtime.rb:36:in `evaluate_compiled_script'
    from /home/will/.rvm/gems/ree-1.8.7-2010.02@bridge-dev/gems/johnson-1.2.0/lib/johnson/runtime.rb:77:in `evaluate'
    from /home/will/.rvm/gems/ree-1.8.7-2010.02@bridge-dev/gems/johnson-1.2.0/bin/johnson:59
    from /home/will/.rvm/gems/ree-1.8.7-2010.02@bridge-dev/gems/johnson-1.2.0/bin/johnson:59:in `each'
    from /home/will/.rvm/gems/ree-1.8.7-2010.02@bridge-dev/gems/johnson-1.2.0/bin/johnson:59
    from /home/will/.rvm/gems/ree-1.8.7-2010.02@bridge-dev/bin/johnson:19:in `load'
    from /home/will/.rvm/gems/ree-1.8.7-2010.02@bridge-dev/bin/johnson:19
$ johnson -e "Ruby.exit(42)"
__noSuchMethod__("exit",[object Array])@:0: #<SystemExit: exit> at (-e):1 (Johnson::Error)
    from @-e:1
    from /home/will/.rvm/gems/ree-1.8.7-2010.02@bridge-dev/gems/johnson-1.2.0/lib/johnson/spidermonkey/js_land_proxy.rb:16:in `evaluate_compiled_script_without_clearing_traps'
    from /home/will/.rvm/gems/ree-1.8.7-2010.02@bridge-dev/gems/johnson-1.2.0/lib/johnson/spidermonkey/runtime.rb:36:in `evaluate_compiled_script'
    from /home/will/.rvm/gems/ree-1.8.7-2010.02@bridge-dev/gems/johnson-1.2.0/lib/johnson/runtime.rb:77:in `evaluate'
    from /home/will/.rvm/gems/ree-1.8.7-2010.02@bridge-dev/gems/johnson-1.2.0/bin/johnson:59
    from /home/will/.rvm/gems/ree-1.8.7-2010.02@bridge-dev/gems/johnson-1.2.0/bin/johnson:59:in `each'
    from /home/will/.rvm/gems/ree-1.8.7-2010.02@bridge-dev/gems/johnson-1.2.0/bin/johnson:59
    from /home/will/.rvm/gems/ree-1.8.7-2010.02@bridge-dev/bin/johnson:19:in `load'
    from /home/will/.rvm/gems/ree-1.8.7-2010.02@bridge-dev/bin/johnson:19
@najamkhn
Copy link

Well, if you're in js shell then try js> quit and if you're in ruby shell, try rb> exit(status_code)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants