-
Notifications
You must be signed in to change notification settings - Fork 37
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
what is the best way to test array contents in javascript? #186
Labels
question
Further information is requested
Comments
@gmabey this should work for uint32 lists. I checked this on RepeatedUIntMessage from tests and it works.
But there is an issue with "transparent" types, so this I need to fix. |
What version did you do this test with? I'm still getting that error (in the original post). |
Recent master, but probably there is something that is specific for the message you check. So if you could give me a raw message structure I could dig further. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a
qtprotobuf
-generated class instance that I'm passing up to QML land.One of its members is a
QtProtobuf::uint32List
and I want to test whether that list contains a certain value. I've triedincludes()
(the javascript array way) andcontains()
(more of a Qt thing) but neither work. The error reads:Is it currently possible to perform this test in a javascript function, within QML?
The text was updated successfully, but these errors were encountered: