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,29 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = function (realm) {
var obj = new _index.ObjectValue(realm, realm.intrinsics.ObjectPrototype, "console");
obj.defineNativeMethod("log", 0, function (context, args) {
realm.outputToConsole("log", args);
return realm.intrinsics.undefined;
});
obj.defineNativeMethod("error", 0, function (context, args) {
realm.outputToConsole("error", args);
return realm.intrinsics.undefined;
});
obj.defineNativeMethod("warn", 0, function (context, args) {
realm.outputToConsole("warn", args);
return realm.intrinsics.undefined;
});
return obj;
};
var _index = require("../../values/index.js");
//# sourceMappingURL=console.js.map