feat: Create filesystem interface and a physical filesystem
This commit is contained in:
@@ -37,6 +37,7 @@ interface Internals {
|
||||
|
||||
var env: Environment = arguments[0], internals: Internals = arguments[1];
|
||||
globalThis.log = internals.constructor.log;
|
||||
var i = 0.0;
|
||||
|
||||
try {
|
||||
run('values/object');
|
||||
|
||||
@@ -2,11 +2,12 @@ define("values/errors", () => {
|
||||
var Error = env.global.Error = function Error(msg: string) {
|
||||
if (msg === undefined) msg = '';
|
||||
else msg += '';
|
||||
|
||||
return Object.setPrototypeOf({
|
||||
|
||||
return {
|
||||
message: msg,
|
||||
stack: [] as string[],
|
||||
}, Error.prototype);
|
||||
__proto__: Error.prototype,
|
||||
} as any;
|
||||
} as ErrorConstructor;
|
||||
|
||||
setConstr(Error.prototype, Error);
|
||||
|
||||
Reference in New Issue
Block a user