-
-
Notifications
You must be signed in to change notification settings - Fork 560
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
'Property 'Wait' of object is not a function' when calling .Wait() on a task with the usage of Jint 3.0.1 #1812
Comments
Maybe related to #1787? |
Please also check Result property on task as stated here #1787 (comment) Thanks :) |
Hi, any update here? |
Well current update is that we are being pinged by a commercial product for free work 🤷🏻♂️ Is the calling code owned by you? I think having |
Marko, don't get me wrong. I decided to ping here since at glance it looked as a regression issue from our perspective so I thought it might be important. There was no response so I thought it could get lost somehow or maybe you already checked it and know something more but didn't update here. Regarding the actual issue, simply converting the sample script from:
to
doesn't work for us but this is because the function that we wrap the script provided by a user (like the above) isn't declared as
If we change it to:
then the call Do you think that's the way to go for us? We have reverted to Jint 3.0.0 for now but we'd like to do the update it in the next release. |
Version used
3.0.1
Describe the bug
We get the following exception in RavenDB with the usage of Jint 3.0.1:
We have verified it was not happening on 3.0.0
To Reproduce
Run the following code:
in RavenDB's Admin JS Console (https://ravendb.net/docs/article-page/6.0/csharp/studio/server/debug/admin-js-console).
EnsureNotPassiveAsync()
returns C#Task
object.Expected behavior
No Exception
Additional context
This is happening in RavenDB Server CC @lahma
The text was updated successfully, but these errors were encountered: