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: resolve path of embedtest binary correctly · nodejs/node@7f5291d

File tree

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

‎test/embedding/test-embedding.js‎

Copy file name to clipboardExpand all lines: test/embedding/test-embedding.js
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ tmpdir.refresh();
1414
common.allowGlobals(global.require);
1515
common.allowGlobals(global.embedVars);
1616

17-
function resolveBuiltBinary(bin) {
18-
let binary = `out/${common.buildType}/${bin}`;
17+
function resolveBuiltBinary(binary) {
1918
if (common.isWindows) {
2019
binary += '.exe';
2120
}
22-
return path.resolve(__dirname, '..', '..', binary);
21+
return path.join(path.dirname(process.execPath), binary);
2322
}
2423

2524
const binary = resolveBuiltBinary('embedtest');

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.