mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
80a989f931
PR-URL: https://github.com/nodejs/node/pull/54380 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Claudio Wunder <cwunder@gnome.org> Reviewed-By: James M Snell <jasnell@gmail.com>
5 lines
172 B
JavaScript
5 lines
172 B
JavaScript
const util = require('node:util');
|
|
const assert = require('node:assert');
|
|
assert.ok(util.getCallSite().length > 1);
|
|
process.stdout.write(util.getCallSite()[0].scriptName);
|