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

You can't call methods on Object #6

Closed
jcubic opened this issue Apr 22, 2019 · 1 comment
Closed

You can't call methods on Object #6

jcubic opened this issue Apr 22, 2019 · 1 comment

Comments

@jcubic
Copy link
Collaborator

jcubic commented Apr 22, 2019

Object is function and it's native so it's hard bind and because of this it lost all props.

@jcubic
Copy link
Collaborator Author

jcubic commented Apr 22, 2019

There is workaround macro:

lips.env.set('Object', new lips.Macro('Object', function() { return Object; }))

and use:

(--> (Object) (keys '(1 2 3)))

instead

(--> Object (keys '(1 2 3)))

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