mol_text_distance 0.0.1336 → 0.0.1338
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 +9 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.test.js
CHANGED
|
@@ -557,7 +557,7 @@ var $;
|
|
|
557
557
|
if (this[$mol_ambient_ref])
|
|
558
558
|
return this[$mol_ambient_ref];
|
|
559
559
|
const owner = $mol_owning_get(this);
|
|
560
|
-
return this[$mol_ambient_ref] = owner?.$ || $mol_object2.$;
|
|
560
|
+
return this[$mol_ambient_ref] = owner?.$ || this.constructor.$ || $mol_object2.$;
|
|
561
561
|
}
|
|
562
562
|
set $(next) {
|
|
563
563
|
if (this[$mol_ambient_ref])
|
|
@@ -611,7 +611,7 @@ var $;
|
|
|
611
611
|
;
|
|
612
612
|
"use strict";
|
|
613
613
|
var $;
|
|
614
|
-
(function ($) {
|
|
614
|
+
(function ($_1) {
|
|
615
615
|
$mol_test({
|
|
616
616
|
'init with overload'() {
|
|
617
617
|
class X extends $mol_object {
|
|
@@ -624,6 +624,13 @@ var $;
|
|
|
624
624
|
});
|
|
625
625
|
$mol_assert_equal(x.foo(), 2);
|
|
626
626
|
},
|
|
627
|
+
'Context in instance inherits from class'($) {
|
|
628
|
+
const custom = $.$mol_ambient({});
|
|
629
|
+
class X extends $.$mol_object {
|
|
630
|
+
static $ = custom;
|
|
631
|
+
}
|
|
632
|
+
$mol_assert_equal(new X().$, custom);
|
|
633
|
+
},
|
|
627
634
|
});
|
|
628
635
|
})($ || ($ = {}));
|
|
629
636
|
|