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_runner: accept \x1b as a escape symbol · nodejs/node@5a43586

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/test_runner
    • tap_lexer.js
  • test/parallel
    • test-runner-tap-lexer.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/test_runner/tap_lexer.js‎

Copy file name to clipboardExpand all lines: lib/internal/test_runner/tap_lexer.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ class TapLexer {
525525
}
526526

527527
#isEscapeSymbol(char) {
528-
return char === '\\';
528+
return char === '\\' || char === '\x1b';
529529
}
530530

531531
#isYamlStartSymbol(char) {
Collapse file

‎test/parallel/test-runner-tap-lexer.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-runner-tap-lexer.js
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,3 +480,15 @@ ok 1
480480
assert.strictEqual(tokens[index].value, token.value);
481481
});
482482
}
483+
484+
{
485+
const tokens = TAPLexer('\x1b');
486+
487+
[
488+
{ kind: TokenKind.ESCAPE, value: '\x1b' },
489+
{ kind: TokenKind.EOL, value: '' },
490+
].forEach((token, index) => {
491+
assert.strictEqual(tokens[index].kind, token.kind);
492+
assert.strictEqual(tokens[index].value, token.value);
493+
});
494+
}

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.