Merge 11aad46078 into 251ff1d1af
This commit is contained in:
commit
86f422f8dd
|
|
@ -1297,7 +1297,12 @@ function OutputStream(options) {
|
||||||
};
|
};
|
||||||
|
|
||||||
DEFPRINT(AST_RegExp, function(self, output){
|
DEFPRINT(AST_RegExp, function(self, output){
|
||||||
var str = self.getValue().toString();
|
var str = self.getValue()
|
||||||
|
try {
|
||||||
|
str = str.toString();
|
||||||
|
} catch (e) {
|
||||||
|
throw new Error('Cannot evaluate RegExp [' + self.start.file + ':' + self.start.line + ',' + self.start.col + ']');
|
||||||
|
}
|
||||||
if (output.option("ascii_only")) {
|
if (output.option("ascii_only")) {
|
||||||
str = output.to_ascii(str);
|
str = output.to_ascii(str);
|
||||||
} else if (output.option("unescape_regexps")) {
|
} else if (output.option("unescape_regexps")) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user