mol_regexp 0.0.1679 → 0.0.1680
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
|
@@ -799,7 +799,7 @@ var $;
|
|
|
799
799
|
if (this[$mol_ambient_ref])
|
|
800
800
|
return this[$mol_ambient_ref];
|
|
801
801
|
const owner = $mol_owning_get(this);
|
|
802
|
-
return this[$mol_ambient_ref] = owner?.$ || $mol_object2.$;
|
|
802
|
+
return this[$mol_ambient_ref] = owner?.$ || this.constructor.$ || $mol_object2.$;
|
|
803
803
|
}
|
|
804
804
|
set $(next) {
|
|
805
805
|
if (this[$mol_ambient_ref])
|
|
@@ -853,7 +853,7 @@ var $;
|
|
|
853
853
|
;
|
|
854
854
|
"use strict";
|
|
855
855
|
var $;
|
|
856
|
-
(function ($) {
|
|
856
|
+
(function ($_1) {
|
|
857
857
|
$mol_test({
|
|
858
858
|
'init with overload'() {
|
|
859
859
|
class X extends $mol_object {
|
|
@@ -866,6 +866,13 @@ var $;
|
|
|
866
866
|
});
|
|
867
867
|
$mol_assert_equal(x.foo(), 2);
|
|
868
868
|
},
|
|
869
|
+
'Context in instance inherits from class'($) {
|
|
870
|
+
const custom = $.$mol_ambient({});
|
|
871
|
+
class X extends $.$mol_object {
|
|
872
|
+
static $ = custom;
|
|
873
|
+
}
|
|
874
|
+
$mol_assert_equal(new X().$, custom);
|
|
875
|
+
},
|
|
869
876
|
});
|
|
870
877
|
})($ || ($ = {}));
|
|
871
878
|
|