mol_mutable 0.0.1118 → 0.0.1119
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 +5 -0
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.test.js
CHANGED
|
@@ -470,6 +470,8 @@ var $;
|
|
|
470
470
|
"use strict";
|
|
471
471
|
var $;
|
|
472
472
|
(function ($) {
|
|
473
|
+
if (!Symbol.dispose)
|
|
474
|
+
Symbol.dispose = Symbol('Symbol.dispose');
|
|
473
475
|
class $mol_object2 {
|
|
474
476
|
static $ = $;
|
|
475
477
|
[Symbol.toStringTag];
|
|
@@ -502,6 +504,9 @@ var $;
|
|
|
502
504
|
}
|
|
503
505
|
destructor() { }
|
|
504
506
|
static destructor() { }
|
|
507
|
+
[Symbol.dispose]() {
|
|
508
|
+
this.destructor();
|
|
509
|
+
}
|
|
505
510
|
toString() {
|
|
506
511
|
return this[Symbol.toStringTag] || this.constructor.name + '<>';
|
|
507
512
|
}
|