(stack)
| 28 | |
| 29 | // Verify that the stack is decorated when possible. |
| 30 | function checkStack(stack) { |
| 31 | // Matching only on a minimal piece of the stack because the string will vary |
| 32 | // greatly depending on the JavaScript engine. V8 includes `;` because it |
| 33 | // displays the line of code (`var foo bar;`) that is causing a problem. |
| 34 | // ChakraCore does not display the line of code but includes `;` in the phrase |
| 35 | // `Expected ';' `. |
| 36 | assert.match(stack, /;/g); |
| 37 | // Test that it's a multiline string. |
| 38 | assert.match(stack, /\n/g); |
| 39 | } |
| 40 | let err; |
| 41 | const badSyntaxPath = |
| 42 | fixtures.path('syntax', 'bad_syntax').replace(/\\/g, '\\\\'); |
no test coverage detected
searching dependent graphs…