(option)
| 3715 | } |
| 3716 | |
| 3717 | function scanTemplateElement(option) { |
| 3718 | var startsWith, template; |
| 3719 | |
| 3720 | lookahead = null; |
| 3721 | skipComment(); |
| 3722 | |
| 3723 | startsWith = (option.head) ? '`' : '}'; |
| 3724 | |
| 3725 | if (source[index] !== startsWith) { |
| 3726 | throwError({}, Messages.UnexpectedToken, 'ILLEGAL'); |
| 3727 | } |
| 3728 | |
| 3729 | template = scanTemplate(); |
| 3730 | |
| 3731 | peek(); |
| 3732 | |
| 3733 | return template; |
| 3734 | } |
| 3735 | |
| 3736 | function testRegExp(pattern, flags) { |
| 3737 | var tmp = pattern, |
no test coverage detected