-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
res.json()
result prototype issue
#2133
Comments
This seemed to have been broken since v0.28.0 and even before that (IMO) it was working because it was hitting the one case it worked in, but with #2135 it should work again 🤞 |
I confirm that it works with the freshly released Thanks |
Greetings,
I started playing with K6 for Smoke Testing purposes, and I am facing some issues with my internal utils that leverage
Object.prototype.hasOwnProperty.call()
to perform some assertions in my workflow on theres.json()
HTTP response data structure, whom I believe doesn't work as expected.Environment
k6 v0.33.0 (2021-06-29T10:38:31+0000/cc0361c, go1.16.5, linux/amd64)
Expected Behavior
Object.prototype.hasOwnProperty.call( jsonResponse, 'length' )
to betrue
.Actual Behavior
Object.prototype.hasOwnProperty.call( jsonResponse, 'length' )
isfalse
.Steps to Reproduce the Problem
3.1. Confirm that the
has crocodiles info
check also failsPlease let me know if you need any additional information.
Thanks.
The text was updated successfully, but these errors were encountered: