| Index: tools/js2c.py
|
| diff --git a/tools/js2c.py b/tools/js2c.py
|
| index e913ca1e3996bd8fee619bf26e3a76ec1b5e2e9a..6a29fbe7f03eaa8e4b7d35d6d4b82406257591e7 100755
|
| --- a/tools/js2c.py
|
| +++ b/tools/js2c.py
|
| @@ -69,8 +69,9 @@ def ReadFile(filename):
|
|
|
| EVAL_PATTERN = re.compile(r'\beval\s*\(')
|
| WITH_PATTERN = re.compile(r'\bwith\s*\(')
|
| -INVALID_ERROR_MESSAGE_PATTERN = re.compile(r'Make\w*Error\(([kA-Z]\w+)')
|
| -NEW_ERROR_PATTERN = re.compile(r'new \$\w*Error\((?!\))');
|
| +INVALID_ERROR_MESSAGE_PATTERN = re.compile(
|
| + r'Make(?!Generic)\w*Error\(([kA-Z]\w+)')
|
| +NEW_ERROR_PATTERN = re.compile(r'new \$\w*Error\((?!\))')
|
|
|
| def Validate(lines):
|
| # Because of simplified context setup, eval and with is not
|
|
|