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 Jan 7, 2024
1 parent f42eb99 commit 7d0b556
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 44 deletions.
12 changes: 6 additions & 6 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.

12 changes: 6 additions & 6 deletions node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ var $;
destructor() { }
static destructor() { }
toString() {
return this[Symbol.toStringTag] || this.constructor.name + '()';
return this[Symbol.toStringTag] || this.constructor.name + '<>';
}
static toJSON() {
return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
Expand Down Expand Up @@ -718,7 +718,7 @@ var $;
return $mol_promise_like(this.cache);
}
field() {
return this.task.name + '()';
return this.task.name + '<>';
}
constructor(id, task, host, args) {
super();
Expand Down Expand Up @@ -1614,7 +1614,7 @@ var $;
break reuse;
return existen;
}
const next = new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host, args);
const next = new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}<#>`, task, host, args);
if (existen?.temp) {
$$.$mol_log3_warn({
place: '$mol_wire_task',
Expand Down Expand Up @@ -1726,7 +1726,7 @@ var $;
(function ($) {
class $mol_wire_atom extends $mol_wire_fiber {
static solo(host, task) {
const field = task.name + '()';
const field = task.name + '<>';
const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
if (existen)
return existen;
Expand All @@ -1737,7 +1737,7 @@ var $;
return fiber;
}
static plex(host, task, key) {
const field = task.name + '()';
const field = task.name + '<>';
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
const key_str = $mol_key(key);
Expand All @@ -1749,7 +1749,7 @@ var $;
else {
dict = (host ?? task)[field] = new Map();
}
const id = `${prefix}.${task.name}(${key_str.replace(/^"|"$/g, "'")})`;
const id = `${prefix}.${task.name}<${key_str.replace(/^"|"$/g, "'")}>`;
const fiber = new $mol_wire_atom(id, task, host, [key]);
dict.set(key_str, fiber);
return fiber;
Expand Down
26 changes: 15 additions & 11 deletions node.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ var $;
destructor() { }
static destructor() { }
toString() {
return this[Symbol.toStringTag] || this.constructor.name + '()';
return this[Symbol.toStringTag] || this.constructor.name + '<>';
}
static toJSON() {
return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
Expand Down Expand Up @@ -710,7 +710,7 @@ var $;
return $mol_promise_like(this.cache);
}
field() {
return this.task.name + '()';
return this.task.name + '<>';
}
constructor(id, task, host, args) {
super();
Expand Down Expand Up @@ -1606,7 +1606,7 @@ var $;
break reuse;
return existen;
}
const next = new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host, args);
const next = new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}<#>`, task, host, args);
if (existen?.temp) {
$$.$mol_log3_warn({
place: '$mol_wire_task',
Expand Down Expand Up @@ -1718,7 +1718,7 @@ var $;
(function ($) {
class $mol_wire_atom extends $mol_wire_fiber {
static solo(host, task) {
const field = task.name + '()';
const field = task.name + '<>';
const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
if (existen)
return existen;
Expand All @@ -1729,7 +1729,7 @@ var $;
return fiber;
}
static plex(host, task, key) {
const field = task.name + '()';
const field = task.name + '<>';
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
const key_str = $mol_key(key);
Expand All @@ -1741,7 +1741,7 @@ var $;
else {
dict = (host ?? task)[field] = new Map();
}
const id = `${prefix}.${task.name}(${key_str.replace(/^"|"$/g, "'")})`;
const id = `${prefix}.${task.name}<${key_str.replace(/^"|"$/g, "'")}>`;
const fiber = new $mol_wire_atom(id, task, host, [key]);
dict.set(key_str, fiber);
return fiber;
Expand Down Expand Up @@ -13598,6 +13598,10 @@ var $;
const print = (val) => {
if (!val)
return val;
if (typeof val === 'bigint')
return String(val) + 'n';
if (typeof val === 'symbol')
return `Symbol(${val.description})`;
if (typeof val !== 'object')
return val;
if ('outerHTML' in val)
Expand Down Expand Up @@ -14460,7 +14464,7 @@ var $;
__decorate([
$mol_wire_solo
], App, "title", null);
$mol_assert_equal(`${App.title()}`, 'App.title()');
$mol_assert_equal(`${App.title()}`, 'App.title<>');
},
'Unsubscribe from temp pubs on complete'($) {
class Random extends $mol_object2 {
Expand Down Expand Up @@ -14579,8 +14583,8 @@ var $;
__decorate([
$mol_wire_plex
], App, "relation", null);
$mol_assert_equal(`${App.like(123)}`, 'App.like(123)');
$mol_assert_equal(`${App.relation([123, [456]])}`, 'App.relation([123,[456]])');
$mol_assert_equal(`${App.like(123)}`, 'App.like<123>');
$mol_assert_equal(`${App.relation([123, [456]])}`, 'App.relation<[123,[456]]>');
},
'Deep deps'($) {
class Fib extends $mol_object2 {
Expand Down Expand Up @@ -14956,8 +14960,8 @@ var $;
$mol_mem_key
], $mol_view_test_block.prototype, "element", null);
var x = $mol_view_test_block.Root(0);
$mol_assert_equal(x.dom_node().id, '$mol_view_test_block.Root(0)');
$mol_assert_equal(x.element(0).dom_node().id, '$mol_view_test_block.Root(0).element(0)');
$mol_assert_equal(x.dom_node().id, '$mol_view_test_block.Root<0>');
$mol_assert_equal(x.element(0).dom_node().id, '$mol_view_test_block.Root<0>.element<0>');
},
'caching ref to dom node'($) {
var x = new class extends $mol_view {
Expand Down
2 changes: 1 addition & 1 deletion node.test.js.map

Large diffs are not rendered by default.

12 changes: 6 additions & 6 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.

12 changes: 6 additions & 6 deletions web.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ var $;
destructor() { }
static destructor() { }
toString() {
return this[Symbol.toStringTag] || this.constructor.name + '()';
return this[Symbol.toStringTag] || this.constructor.name + '<>';
}
static toJSON() {
return this[Symbol.toStringTag] || this.$.$mol_func_name(this);
Expand Down Expand Up @@ -709,7 +709,7 @@ var $;
return $mol_promise_like(this.cache);
}
field() {
return this.task.name + '()';
return this.task.name + '<>';
}
constructor(id, task, host, args) {
super();
Expand Down Expand Up @@ -1148,7 +1148,7 @@ var $;
break reuse;
return existen;
}
const next = new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}(#)`, task, host, args);
const next = new $mol_wire_task(`${host?.[Symbol.toStringTag] ?? host}.${task.name}<#>`, task, host, args);
if (existen?.temp) {
$$.$mol_log3_warn({
place: '$mol_wire_task',
Expand Down Expand Up @@ -1260,7 +1260,7 @@ var $;
(function ($) {
class $mol_wire_atom extends $mol_wire_fiber {
static solo(host, task) {
const field = task.name + '()';
const field = task.name + '<>';
const existen = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
if (existen)
return existen;
Expand All @@ -1271,7 +1271,7 @@ var $;
return fiber;
}
static plex(host, task, key) {
const field = task.name + '()';
const field = task.name + '<>';
let dict = Object.getOwnPropertyDescriptor(host ?? task, field)?.value;
const prefix = host?.[Symbol.toStringTag] ?? (host instanceof Function ? $$.$mol_func_name(host) : host);
const key_str = $mol_key(key);
Expand All @@ -1283,7 +1283,7 @@ var $;
else {
dict = (host ?? task)[field] = new Map();
}
const id = `${prefix}.${task.name}(${key_str.replace(/^"|"$/g, "'")})`;
const id = `${prefix}.${task.name}<${key_str.replace(/^"|"$/g, "'")}>`;
const fiber = new $mol_wire_atom(id, task, host, [key]);
dict.set(key_str, fiber);
return fiber;
Expand Down
14 changes: 9 additions & 5 deletions web.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 web.test.js.map

Large diffs are not rendered by default.

0 comments on commit 7d0b556

Please sign in to comment.