Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global halts the repl #23

Open
duraki opened this issue Mar 15, 2021 · 1 comment
Open

global halts the repl #23

duraki opened this issue Mar 15, 2021 · 1 comment

Comments

@duraki
Copy link
Contributor

duraki commented Mar 15, 2021

Trying to list all globals yields in unresponsive tty. Signals are ignored until suspended (Cmd+Z),

$ build/src/cycript
cy# global
Target process terminated


^C^D

Expected value; global definitions in a list/ary or ReferenceError exception.

ie.
[1, 2, 3 ... global(n)] // definitons
@duraki
Copy link
Contributor Author

duraki commented Mar 17, 2021

hotfix (for now):

global.global = function() {
  return Object.keys(global);
}

called via global().

***: find a way to global = global.global() ie. a static const parenthesisless

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

No branches or pull requests

1 participant