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: fix args in parallel/test-fs-null-bytes.js · nodejs/node@7d4941f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/parallel
    • test-fs-null-bytes.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/parallel/test-fs-null-bytes.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-fs-null-bytes.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function check(async, sync) {
2222

2323
check(fs.access, fs.accessSync, 'foo\u0000bar');
2424
check(fs.access, fs.accessSync, 'foo\u0000bar', fs.F_OK);
25-
check(fs.appendFile, fs.appendFileSync, 'foo\u0000bar');
25+
check(fs.appendFile, fs.appendFileSync, 'foo\u0000bar', 'abc');
2626
check(fs.chmod, fs.chmodSync, 'foo\u0000bar', '0644');
2727
check(fs.chown, fs.chownSync, 'foo\u0000bar', 12, 34);
2828
check(fs.link, fs.linkSync, 'foo\u0000bar', 'foobar');
@@ -46,7 +46,7 @@ check(null, fs.unwatchFile, 'foo\u0000bar', common.fail);
4646
check(fs.utimes, fs.utimesSync, 'foo\u0000bar', 0, 0);
4747
check(null, fs.watch, 'foo\u0000bar', common.fail);
4848
check(null, fs.watchFile, 'foo\u0000bar', common.fail);
49-
check(fs.writeFile, fs.writeFileSync, 'foo\u0000bar');
49+
check(fs.writeFile, fs.writeFileSync, 'foo\u0000bar', 'abc');
5050

5151
// an 'error' for exists means that it doesn't exist.
5252
// one of many reasons why this file is the absolute worst.

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.