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: specify global object for globals · nodejs/node@5ef609a

File tree

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

‎test/parallel/test-fs-write.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-fs-write.js
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ const fn4 = path.join(tmpdir.path, 'write4.txt');
3636
const expected = 'ümlaut.';
3737
const constants = fs.constants;
3838

39-
/* eslint-disable no-undef */
40-
common.allowGlobals(externalizeString, isOneByteString, x);
39+
const { externalizeString, isOneByteString } = global;
40+
41+
// Account for extra globals exposed by --expose_externalize_string.
42+
common.allowGlobals(externalizeString, isOneByteString, global.x);
4143

4244
{
4345
const expected = 'ümlaut sechzig'; // Must be a unique string.
@@ -78,7 +80,6 @@ common.allowGlobals(externalizeString, isOneByteString, x);
7880
fs.closeSync(fd);
7981
assert.strictEqual(fs.readFileSync(fn, 'utf8'), expected);
8082
}
81-
/* eslint-enable no-undef */
8283

8384
fs.open(fn, 'w', 0o644, common.mustSucceed((fd) => {
8485
const done = common.mustSucceed((written) => {

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.