GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: make test-repl-syntax-error-stack agnostic · nodejs/node@f8337ce

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-repl-syntax-error-stack.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-repl-syntax-error-stack.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-repl-syntax-error-stack.js
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ process.on('exit', () => {
1111
});
1212

1313
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))
1520
found = true;
1621
};
1722

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.