Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RegExp.rightContext differs between Jerryscript and V8 #5123

Open
Qbtly opened this issue Dec 21, 2023 · 0 comments
Open

RegExp.rightContext differs between Jerryscript and V8 #5123

Qbtly opened this issue Dec 21, 2023 · 0 comments

Comments

@Qbtly
Copy link

Qbtly commented Dec 21, 2023

JerryScript revision

ff9ff8f

Build platform

Ubuntu 22.04.3

Build steps
python ./tools/build.py --builddir=xxx --clean --debug --compile-flag=-fsanitize=address --compile-flag=-g --strip=off --lto=off --logging=on --line-info=on --error-message=on --stack-limit=20
Test case
var str = "ab";
var pattern = /a/;
str.split(pattern);
print(RegExp.rightContext);
Execution steps
./xxx/bin/jerry poc.js
Output
Jerryscript: undefined
V8: b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant