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: keep finalization close fixture ref alive · nodejs/node@570952d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/fixtures/process
    • close.mjs
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/fixtures/process/close.mjs‎

Copy file name to clipboardExpand all lines: test/fixtures/process/close.mjs
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { strictEqual } from 'assert'
22

3+
let obj
4+
35
function setup() {
4-
const obj = { foo: 'bar' }
6+
obj = { foo: 'bar' }
57
process.finalization.register(obj, shutdown)
68
}
79

@@ -14,5 +16,6 @@ function shutdown(obj) {
1416
setup()
1517

1618
process.on('exit', function () {
19+
strictEqual(obj.foo, 'bar')
1720
strictEqual(shutdownCalled, true)
1821
})

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.