Skip to content

Commit

Permalink
Deployed using Blazing fast GitHub Pages deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
nin-jin committed Feb 3, 2024
1 parent db72aa8 commit 0b9e1b3
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 31 deletions.
5 changes: 1 addition & 4 deletions node.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,14 @@ declare namespace $ {
destructor(): void;
static destructor(): void;
toString(): string;
toJSON(): any;
}
}

declare namespace $ {
namespace $$ { }
const $mol_object_field: unique symbol;
class $mol_object extends $mol_object2 {
static make<Instance>(this: {
new (): Instance;
}, config: Partial<Instance>): Instance;
static make<This extends typeof $mol_object>(this: This, config: Partial<InstanceType<This>>): InstanceType<This>;
}
}

Expand Down
2 changes: 1 addition & 1 deletion node.deps.json

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions node.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node.js.map

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,6 @@ var $;
toString() {
return this[Symbol.toStringTag] || this.constructor.name + '<>';
}
toJSON() {
return this.toString();
}
}
$.$mol_object2 = $mol_object2;
})($ || ($ = {}));
Expand Down Expand Up @@ -1501,6 +1498,9 @@ var $;
if (typeof json.toJSON === 'function') {
return $mol_tree2_from_json(json.toJSON());
}
if (json.toString !== Object.prototype.toString) {
return $mol_tree2.data(json.toString(), [], span);
}
if (json instanceof Error) {
const { name, message, stack } = json;
json = { ...json, name, message, stack };
Expand Down Expand Up @@ -1973,7 +1973,13 @@ var $node = new Proxy({ require }, {
dir = parent;
}
}
return target.require(name);
try {
return target.require(name);
}
catch (error) {
$.$mol_fail_log(error);
return null;
}
},
set(target, name, value) {
target[name] = value;
Expand Down
14 changes: 10 additions & 4 deletions node.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node.test.js.map

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions web.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,14 @@ declare namespace $ {
destructor(): void;
static destructor(): void;
toString(): string;
toJSON(): any;
}
}

declare namespace $ {
namespace $$ { }
const $mol_object_field: unique symbol;
class $mol_object extends $mol_object2 {
static make<Instance>(this: {
new (): Instance;
}, config: Partial<Instance>): Instance;
static make<This extends typeof $mol_object>(this: This, config: Partial<InstanceType<This>>): InstanceType<This>;
}
}

Expand Down
2 changes: 1 addition & 1 deletion web.deps.json

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions web.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web.js.map

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions web.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,6 @@ var $;
toString() {
return this[Symbol.toStringTag] || this.constructor.name + '<>';
}
toJSON() {
return this.toString();
}
}
$.$mol_object2 = $mol_object2;
})($ || ($ = {}));
Expand Down

0 comments on commit 0b9e1b3

Please sign in to comment.