mol_data_all 1.1.1628 → 1.1.1629
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
|
@@ -995,7 +995,7 @@ var $;
|
|
|
995
995
|
if (this[$mol_ambient_ref])
|
|
996
996
|
return this[$mol_ambient_ref];
|
|
997
997
|
const owner = $mol_owning_get(this);
|
|
998
|
-
return this[$mol_ambient_ref] = owner?.$ || $mol_object2.$;
|
|
998
|
+
return this[$mol_ambient_ref] = owner?.$ || this.constructor.$ || $mol_object2.$;
|
|
999
999
|
}
|
|
1000
1000
|
set $(next) {
|
|
1001
1001
|
if (this[$mol_ambient_ref])
|
|
@@ -1049,7 +1049,7 @@ var $;
|
|
|
1049
1049
|
;
|
|
1050
1050
|
"use strict";
|
|
1051
1051
|
var $;
|
|
1052
|
-
(function ($) {
|
|
1052
|
+
(function ($_1) {
|
|
1053
1053
|
$mol_test({
|
|
1054
1054
|
'init with overload'() {
|
|
1055
1055
|
class X extends $mol_object {
|
|
@@ -1062,6 +1062,13 @@ var $;
|
|
|
1062
1062
|
});
|
|
1063
1063
|
$mol_assert_equal(x.foo(), 2);
|
|
1064
1064
|
},
|
|
1065
|
+
'Context in instance inherits from class'($) {
|
|
1066
|
+
const custom = $.$mol_ambient({});
|
|
1067
|
+
class X extends $.$mol_object {
|
|
1068
|
+
static $ = custom;
|
|
1069
|
+
}
|
|
1070
|
+
$mol_assert_equal(new X().$, custom);
|
|
1071
|
+
},
|
|
1065
1072
|
});
|
|
1066
1073
|
})($ || ($ = {}));
|
|
1067
1074
|
|