mol_jsx_lib 0.0.403 → 0.0.405

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/node.test.js CHANGED
@@ -226,6 +226,7 @@ var $;
226
226
  (function ($) {
227
227
  class $mol_object2 {
228
228
  static $ = $;
229
+ [Symbol.toStringTag];
229
230
  [$mol_ambient_ref] = null;
230
231
  get $() {
231
232
  if (this[$mol_ambient_ref])
@@ -951,7 +952,7 @@ var $;
951
952
  }
952
953
  if (typeof Elem !== 'string') {
953
954
  if ('prototype' in Elem) {
954
- const view = node && node[Elem] || new Elem;
955
+ const view = node && node[String(Elem)] || new Elem;
955
956
  Object.assign(view, props);
956
957
  view[Symbol.toStringTag] = guid;
957
958
  view.childNodes = childNodes;
@@ -959,7 +960,7 @@ var $;
959
960
  view.ownerDocument = $.$mol_jsx_document;
960
961
  view.className = (crumbs_self ? crumbs_self + ' ' : '') + (Elem['name'] || Elem);
961
962
  node = view.valueOf();
962
- node[Elem] = view;
963
+ node[String(Elem)] = view;
963
964
  return node;
964
965
  }
965
966
  else {
@@ -1130,7 +1131,7 @@ var $;
1130
1131
  var $;
1131
1132
  (function ($) {
1132
1133
  function $mol_const(value) {
1133
- var getter = (() => value);
1134
+ const getter = (() => value);
1134
1135
  getter['()'] = value;
1135
1136
  getter[Symbol.toStringTag] = value;
1136
1137
  return getter;
@@ -1142,7 +1143,7 @@ var $;
1142
1143
  "use strict";
1143
1144
  var $;
1144
1145
  (function ($) {
1145
- $['devtoolsFormatters'] = $['devtoolsFormatters'] || [];
1146
+ $['devtoolsFormatters'] ||= [];
1146
1147
  function $mol_dev_format_register(config) {
1147
1148
  $['devtoolsFormatters'].push(config);
1148
1149
  }
@@ -1454,6 +1455,7 @@ var $;
1454
1455
  }
1455
1456
  }
1456
1457
  }
1458
+ [Symbol.toStringTag];
1457
1459
  cache = undefined;
1458
1460
  get args() {
1459
1461
  return this.data.slice(0, this.pub_from);
@@ -1690,9 +1692,9 @@ var $;
1690
1692
  if (left instanceof Date)
1691
1693
  return Object.is(left.valueOf(), right['valueOf']());
1692
1694
  if (left instanceof RegExp)
1693
- return left.source === right['source'] && left.flags === right['flags'];
1695
+ return left.source === right.source && left.flags === right.flags;
1694
1696
  if (left instanceof Error)
1695
- return left.message === right['message'] && left.stack === right['stack'];
1697
+ return left.message === right.message && left.stack === right.stack;
1696
1698
  let left_cache = $.$mol_compare_deep_cache.get(left);
1697
1699
  if (left_cache) {
1698
1700
  const right_cache = left_cache.get(right);
@@ -4425,7 +4427,7 @@ var $;
4425
4427
  $mol_assert_equal(title.ownerDocument, doc);
4426
4428
  $mol_assert_equal(doc.documentElement.outerHTML, '<html><body id="foo" class="Title">foo</body></html>');
4427
4429
  title.value('bar');
4428
- await $mol_wire_fiber.sync();
4430
+ $mol_wire_fiber.sync();
4429
4431
  $mol_assert_equal(doc.documentElement.outerHTML, '<html><body id="foo" class="Title">bar</body></html>');
4430
4432
  },
4431
4433
  async 'Nested bound views'($) {
@@ -4456,11 +4458,11 @@ var $;
4456
4458
  const root = $.$mol_jsx_attach(doc, () => $mol_jsx(App, { "$": $, id: "root" }));
4457
4459
  $mol_assert_equal($mol_dom_serialize(doc.documentElement), '<html xmlns="http://www.w3.org/1999/xhtml"><body id="root" class="list App List"></body></html>');
4458
4460
  App.of(root).title('barbar');
4459
- await $mol_wire_fiber.sync();
4461
+ $mol_wire_fiber.sync();
4460
4462
  $mol_assert_equal(Task.of(root.firstElementChild).title(), 'barbar');
4461
4463
  $mol_assert_equal(doc.documentElement.outerHTML, '<html xmlns="http://www.w3.org/1999/xhtml"><body id="root" class="list App List"><h1 id="root/task" class="App_task Task">barbar</h1></body></html>');
4462
4464
  Task.of(root.firstElementChild).title('foofoo');
4463
- await $mol_wire_fiber.sync();
4465
+ $mol_wire_fiber.sync();
4464
4466
  $mol_assert_equal(App.of(root).title(), 'foofoo');
4465
4467
  $mol_assert_equal(doc.documentElement.outerHTML, '<html xmlns="http://www.w3.org/1999/xhtml"><body id="root" class="list App List"><h1 id="root/task" class="App_task Task">foofoo</h1></body></html>');
4466
4468
  },