initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
23
github/codeql-action-v1/node_modules/es-abstract/test/helpers/createBoundESNamespace.js
generated
vendored
Normal file
23
github/codeql-action-v1/node_modules/es-abstract/test/helpers/createBoundESNamespace.js
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
'use strict';
|
||||
|
||||
var bind = require('function-bind');
|
||||
|
||||
var OwnPropertyKeys = require('../../helpers/OwnPropertyKeys');
|
||||
|
||||
module.exports = function createBoundESNamespace(ES) {
|
||||
var keys = OwnPropertyKeys(ES);
|
||||
var result = {};
|
||||
|
||||
for (var i = 0; i < keys.length; i++) {
|
||||
var key = keys[i];
|
||||
var prop = ES[key];
|
||||
if (typeof prop === 'function') {
|
||||
prop = bind.call(prop, undefined);
|
||||
} else if (prop && typeof prop === 'object') {
|
||||
prop = createBoundESNamespace(prop);
|
||||
}
|
||||
result[key] = prop;
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue