mol_crypto_lib 0.1.1659 → 0.1.1660
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.deps.json +1 -1
- package/node.js +1 -1
- package/node.js.map +1 -1
- package/node.mjs +1 -1
- package/node.test.js +9 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.deps.json +1 -1
- package/web.js +1 -1
- package/web.js.map +1 -1
- package/web.mjs +1 -1
package/node.mjs
CHANGED
|
@@ -547,7 +547,7 @@ var $;
|
|
|
547
547
|
if (this[$mol_ambient_ref])
|
|
548
548
|
return this[$mol_ambient_ref];
|
|
549
549
|
const owner = $mol_owning_get(this);
|
|
550
|
-
return this[$mol_ambient_ref] = owner?.$ || $mol_object2.$;
|
|
550
|
+
return this[$mol_ambient_ref] = owner?.$ || this.constructor.$ || $mol_object2.$;
|
|
551
551
|
}
|
|
552
552
|
set $(next) {
|
|
553
553
|
if (this[$mol_ambient_ref])
|
package/node.test.js
CHANGED
|
@@ -538,7 +538,7 @@ var $;
|
|
|
538
538
|
if (this[$mol_ambient_ref])
|
|
539
539
|
return this[$mol_ambient_ref];
|
|
540
540
|
const owner = $mol_owning_get(this);
|
|
541
|
-
return this[$mol_ambient_ref] = owner?.$ || $mol_object2.$;
|
|
541
|
+
return this[$mol_ambient_ref] = owner?.$ || this.constructor.$ || $mol_object2.$;
|
|
542
542
|
}
|
|
543
543
|
set $(next) {
|
|
544
544
|
if (this[$mol_ambient_ref])
|
|
@@ -3011,7 +3011,7 @@ var $;
|
|
|
3011
3011
|
;
|
|
3012
3012
|
"use strict";
|
|
3013
3013
|
var $;
|
|
3014
|
-
(function ($) {
|
|
3014
|
+
(function ($_1) {
|
|
3015
3015
|
$mol_test({
|
|
3016
3016
|
'init with overload'() {
|
|
3017
3017
|
class X extends $mol_object {
|
|
@@ -3024,6 +3024,13 @@ var $;
|
|
|
3024
3024
|
});
|
|
3025
3025
|
$mol_assert_equal(x.foo(), 2);
|
|
3026
3026
|
},
|
|
3027
|
+
'Context in instance inherits from class'($) {
|
|
3028
|
+
const custom = $.$mol_ambient({});
|
|
3029
|
+
class X extends $.$mol_object {
|
|
3030
|
+
static $ = custom;
|
|
3031
|
+
}
|
|
3032
|
+
$mol_assert_equal(new X().$, custom);
|
|
3033
|
+
},
|
|
3027
3034
|
});
|
|
3028
3035
|
})($ || ($ = {}));
|
|
3029
3036
|
|