archives

« Bugzilla Issues Index

#657 — Wrong arguments for [[Put]] in 15.5.4.10


In 15.5.4.10 String.prototype.match (regexp), the step 8-a is as follows:

Call the [[Put]] internal method of rx with arguments "lastIndex" and 0.

However, the [[Put]] internal method takes three arguments instead of two:

8.12.5 [[Put]](P,V,Throw)


Fixed in ES2015.