Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upASSERTION fails in Array.prototype.copyWithin #6458
Labels
Comments
|
Thank you for the report, that is definitely a bug. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I run following code in ch 1.11.19(debug),and it will crash by an assertion.
Crash output:
When reading the source code, I find that the if-condition and the asserts in else-branch are not mutually complemental.
ChakraCore/lib/Runtime/Library/JavascriptArray.cpp
Line 9286 in c848d4d
The asserts in else-branch should be :
Assert((fromVal + count) <= MaxArrayLength && (toVal + count) <= MaxArrayLength )
ISec Lab
2020.6.8