# Version: quickjs-2020-01-05
# Testcase:
var NISLFuzzingFunc = function(){
var regex = new RegExp("/{1ab}/");
print(regex);
};
NISLFuzzingFunc ();
# Command:
quickjs-2020-01-05/qjs testcase.js
# Output:
SyntaxError: nothing to repeat
# Expected output:
/{1ab}/
# Description:
There are two ways to use "{}" according to ES10, one is quantifiers, the other
is RegExp Unicode Escape Sequence. For the second usage, however, if the
sequence inside {} is start with a number, an exception is thrown. Maybe this
is an issue of Quickjs.
Best Regards,
Livy