mol_tree2 1.0.718 → 1.0.720

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.mjs CHANGED
@@ -1170,7 +1170,7 @@ var $;
1170
1170
  this.$mol_fail(err `Need a parent ${left.span}`);
1171
1171
  add_inner(right.clone([
1172
1172
  right.struct('=', [
1173
- context.factory.clone([left.clone([])]),
1173
+ context.factory.struct(context.factory.type.replace(/\*.*/, '*'), [left.clone([])]),
1174
1174
  ]),
1175
1175
  ]));
1176
1176
  }
package/node.test.js CHANGED
@@ -1161,7 +1161,7 @@ var $;
1161
1161
  this.$mol_fail(err `Need a parent ${left.span}`);
1162
1162
  add_inner(right.clone([
1163
1163
  right.struct('=', [
1164
- context.factory.clone([left.clone([])]),
1164
+ context.factory.struct(context.factory.type.replace(/\*.*/, '*'), [left.clone([])]),
1165
1165
  ]),
1166
1166
  ]));
1167
1167
  }