first commit

This commit is contained in:
s.golasch
2023-08-01 13:49:46 +02:00
commit 1fc239fd54
20238 changed files with 3112246 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (realm) {
// ECMA262 19.2.1
var func = new _index.NativeFunctionValue(realm, "Function", "Function", 1, function (context, args, argCount, NewTarget) {
// 1. Let C be the active function object.
var C = func;
// 2. Let args be the argumentsList that was passed to this function by [[Call]] or [[Construct]].
args = argCount > 0 ? args : [];
// 3. Return ? CreateDynamicFunction(C, NewTarget, "normal", args).
return _singletons.Create.CreateDynamicFunction(realm, C, NewTarget, "normal", args);
});
return func;
};
var _index = require("../../values/index.js");
var _singletons = require("../../singletons.js");
//# sourceMappingURL=Function.js.map