| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c81b086 commit f8337ce
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,7 +11,12 @@ process.on('exit', () => { | |||
| 11 | 11 | }); | |
| 12 | 12 | ||
| 13 | 13 | common.ArrayStream.prototype.write = function(output) { | |
| 14 | - if (/var foo bar;/.test(output)) | ||
| 14 | + // Matching only on a minimal piece of the stack because the string will vary | ||
| 15 | + // greatly depending on the JavaScript engine. V8 includes `;` because it | ||
| 16 | + // displays the line of code (`var foo bar;`) that is causing a problem. | ||
| 17 | + // ChakraCore does not display the line of code but includes `;` in the phrase | ||
| 18 | + // `Expected ';' `. | ||
| 19 | + if (/;/.test(output)) | ||
| 15 | 20 | found = true; | |
| 16 | 21 | }; | |
| 17 | 22 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments