-
-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into magnetic-manatee
- Loading branch information
Showing
17 changed files
with
213 additions
and
351 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "JS-Attach", | ||
"type": "node", | ||
"request": "attach", | ||
"port": 9229, | ||
"continueOnAttach": true, | ||
"autoAttachChildProcesses": true, | ||
"resolveSourceMapLocations": [ | ||
"!**/node_modules/**", | ||
"!**/.vscode/extensions/hbenl.vscode-mocha-test-adapter-*/**" | ||
], | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Native-Launch", | ||
"preLaunchTask": "clean_build_debug", | ||
"program": "node", | ||
"suppressMultipleSessionWarning": true, | ||
"sourceLanguages": [ | ||
"cpp" | ||
], | ||
"args": [ | ||
"--inspect-brk=9229", | ||
"--expose-gc", | ||
"-r", | ||
"ts-node/register", | ||
"${workspaceFolder}/test/debug.ts" | ||
], | ||
} | ||
], | ||
"compounds": [ | ||
{ | ||
"name": "Node-Launch", | ||
"configurations": [ | ||
"Native-Launch", | ||
"JS-Attach", | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
{ | ||
"mochaExplorer.parallel": true, | ||
"mochaExplorer.globImplementation": "vscode" | ||
"mochaExplorer.globImplementation": "vscode", | ||
"mochaExplorer.nodeArgv": [ | ||
"--expose-gc" | ||
], | ||
"mochaExplorer.debuggerConfig": "JS-Attach" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "clean_build_debug", | ||
"type": "shell", | ||
"command": "pnpm clean.release && pnpm build.debug", | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import * as zmq from "../src" | ||
|
||
import {getGcOrSkipTest} from "./unit/helpers" | ||
|
||
async function main() { | ||
const gc = getGcOrSkipTest() | ||
|
||
let weakRef: undefined | WeakRef<zmq.Context> | ||
const task = async () => { | ||
const context: zmq.Context | undefined = new zmq.Context() | ||
const dealer = new zmq.Dealer({context, linger: 0}) | ||
weakRef = new WeakRef(context) | ||
|
||
// dealer.close() | ||
} | ||
|
||
await task() | ||
await gc() | ||
|
||
console.log(weakRef?.deref()) | ||
} | ||
|
||
main().catch(err => { | ||
console.error(err) | ||
process.exit(1) | ||
}) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"include": ["**/*.ts"] | ||
"include": [ | ||
"**/*.ts" | ||
] | ||
} |
Oops, something went wrong.