Fix a typo in JIT and add a test.

This commit is contained in:
zherczeg 2018-01-10 09:28:03 +00:00
parent 0554b42fea
commit 6b6630fc34
3 changed files with 14 additions and 1 deletions

View File

@ -8314,7 +8314,7 @@ add_jump(compiler, &backtrack->topbacktracks, JUMP(SLJIT_SIG_GREATER32));
if (common->abort_label == NULL)
add_jump(compiler, &common->abort, JUMP(SLJIT_NOT_EQUAL32) /* SIG_LESS */);
else
JUMPTO(SLJIT_NOT_EQUAL /* SIG_LESS */, common->abort_label);
JUMPTO(SLJIT_NOT_EQUAL32 /* SIG_LESS */, common->abort_label);
return cc + callout_length;
}

3
testdata/testinput2 vendored
View File

@ -1099,6 +1099,9 @@
/(?C)a|b/I
/a|(b)(?C)/I
b
/x(ab|(bc|(de|(?R))))/I
xab
xbc

10
testdata/testoutput2 vendored
View File

@ -3880,6 +3880,16 @@ Capturing subpattern count = 0
Starting code units: a b
Subject length lower bound = 1
/a|(b)(?C)/I
Capturing subpattern count = 1
Starting code units: a b
Subject length lower bound = 1
b
--->b
0 ^^ End of pattern
0: b
1: b
/x(ab|(bc|(de|(?R))))/I
Capturing subpattern count = 3
First code unit = 'x'