Allow parsing regexp after arrow token (#1439)
This commit is contained in:
committed by
Richard van Velzen
parent
52ce9a333c
commit
4728bc73ad
@@ -126,3 +126,12 @@ arrow_binding_pattern_strict: {
|
||||
}
|
||||
expect_exact: 'var foo=([,])=>"foo";'
|
||||
}
|
||||
|
||||
arrow_with_regexp: {
|
||||
input: {
|
||||
num => /\d{11,14}/.test( num )
|
||||
}
|
||||
expect: {
|
||||
num => /\d{11,14}/.test( num )
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user