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

isObject doesn't work inside coffeescript REPL #2

Open
cheerfulstoic opened this issue May 1, 2014 · 1 comment
Open

isObject doesn't work inside coffeescript REPL #2

cheerfulstoic opened this issue May 1, 2014 · 1 comment

Comments

@cheerfulstoic
Copy link

Working in the Good Eggs coffeescript console, I try the following:

fibrous> getto = require 'getto'
fibrous> { value: {} }

It throws "Error: Error: Not an Object". Works just fine in the node console. Seems to be failing on the "value.constructor === Object" condition on line 25

@asalant
Copy link
Contributor

asalant commented Jul 4, 2014

I think you meant to write:

fibrous> getto = require 'getto'
fibrous> getto({ value: {} })

It looks like this issue only happens for objects created in the REPL directly. You are right that the issue is the value.constructor === Object line returning false for objects created in the REPL.

Are you seeing this issue other than for objects created directly in the REPL like your example?

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

2 participants