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

"foo['batz']! someArgs" results in Error #34

Open
benekastah opened this issue Jun 21, 2011 · 2 comments
Open

"foo['batz']! someArgs" results in Error #34

benekastah opened this issue Jun 21, 2011 · 2 comments

Comments

@benekastah
Copy link
Contributor

Async function calls don't respect functions accessed from an object with the bracket syntax. The specific error is: Error: Unexpected token: operator (!)

@weepy
Copy link
Owner

weepy commented Jun 21, 2011

Can you give an example ?

On Tue, Jun 21, 2011 at 4:31 AM, benekastah <
[email protected]>wrote:

Async function calls don't respect functions accessed from an object with
the bracket syntax.

Reply to this email directly or view it on GitHub:
#34

@benekastah
Copy link
Contributor Author

The code

method = :get
server[method]! route
doStuff()

generates an error. I would expect it to do this:

method = 'get'
server[method](route, function() {
doStuff()
})

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