feat: Create filesystem interface and a physical filesystem
This commit is contained in:
@@ -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