mirror of
https://github.com/actions/setup-python.git
synced 2025-06-28 21:53:47 +00:00
Fix.
This commit is contained in:
parent
7fe1ba03a3
commit
ec0a863019
7020 changed files with 1880198 additions and 489 deletions
18
node_modules/caller-callsite/index.js
generated
vendored
Normal file
18
node_modules/caller-callsite/index.js
generated
vendored
Normal file
|
@ -0,0 +1,18 @@
|
|||
'use strict';
|
||||
const callsites = require('callsites');
|
||||
|
||||
module.exports = () => {
|
||||
const c = callsites();
|
||||
let caller;
|
||||
|
||||
for (let i = 0; i < c.length; i++) {
|
||||
const hasReceiver = c[i].getTypeName() !== null;
|
||||
|
||||
if (hasReceiver) {
|
||||
caller = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return c[caller];
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue