You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node and deno evaluates the expression "a ".split(/(d)*/) to [ "a", undefined, " " ], but quickjs-ng evaluates to [ 'a', 'undefined', ' ' ].
The text was updated successfully, but these errors were encountered:
malbarbo
changed the title
'undefined' return instead of undefined in string split with regex'undefined' returned instead of undefined in string split with regex
Sep 30, 2024
malbarbo
changed the title
'undefined' returned instead of undefined in string split with regex
'undefined' returned instead of undefined in string split with regex
Sep 30, 2024
The expected result of `"ab".split(/(c)*/)[1]` is `undefined` but
was in fact `"undefined"` due to unintentional stringification.
Fixes: quickjs-ng#565
The expected result of `"ab".split(/(c)*/)[1]` is `undefined` but
was in fact `"undefined"` due to unintentional stringification.
Fixes: quickjs-ng/quickjs#565
node and deno evaluates the expression
"a ".split(/(d)*/)
to[ "a", undefined, " " ]
, but quickjs-ng evaluates to[ 'a', 'undefined', ' ' ]
.The text was updated successfully, but these errors were encountered: