Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
bug683838.js
blob: 841376c0315980b91f18cbe644775eac70657917 [
file
] [
log
] [
blame
]
var
rg
=
/(X(?:.(?!X))*?Y)|(Y(?:.(?!Y))*?Z)/
g
;
var
str
=
"Y aaa X Match1 Y aaa Y Match2 Z"
;
assertEq
(
str
.
match
(
rg
)
+
""
,
"X Match1 Y,Y Match2 Z"
);