The pop() method removes the last element of the array and returns it,and the maximum length of the array is 2^32−1.But after I put an element in the last position of the array, an RangeError occurred while executing the pop function.When executing this test case on other engines, (like chakraCore, v8 and spiderMonkey),no error occurred.
The pop() method removes the last element of the array and returns it,and the maximum length of the array is 2^32−1.But after I put an element in the last position of the array, an RangeError occurred while executing the pop function.When executing this test case on other engines, (like chakraCore, v8 and spiderMonkey),no error occurred.
version
b6530ae
Test case
Command
Output
Expected behavior