Skip to content

Conversation

@rwalczyna
Copy link
Contributor

In newest ES standard limit parameter is calculated using
ToUint32 function instead of ToLength.

JerryScript-DCO-1.0-Signed-off-by: Rafal Walczyna [email protected]

  • there was an assert failure in Regexp split function, when lastIndex were forced to value bigger than size (calculation method was changed in ECMA-262 v11, 21.2.5.11 19.d.ii)
  • ToLength function for limit argument was changed to ToUint32
  • test built-ins/RegExp/prototype/Symbol.split/coerce-limit.js fails, because it is not valid for new version - ToUint32 works different than ToLength for negative numbers. (Test is changed here)

<test id="built-ins/RegExp/prototype/Symbol.replace/y-set-lastindex.js"><reason></reason></test>
<test id="built-ins/RegExp/prototype/Symbol.search/get-sticky-coerce.js"><reason></reason></test>
<test id="built-ins/RegExp/prototype/Symbol.search/get-sticky-err.js"><reason></reason></test>
<test id="built-ins/RegExp/prototype/Symbol.split/coerce-limit.js"><reason></reason></test>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a short comment to reason block, for example: won't fix due to spec change - #3942

Copy link
Member

@rerobika rerobika left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rerobika rerobika added the ecma builtins Related to ECMA built-in routines label Jun 26, 2020
…dard

In newest ES standard limit parameter is calculated using
ToUint32 function instead of ToLength.

JerryScript-DCO-1.0-Signed-off-by: Rafal Walczyna [email protected]
Copy link
Contributor

@LaszloLango LaszloLango left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ecma builtins Related to ECMA built-in routines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants