@jsenv/core 29.1.19 → 29.2.1
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/dist/babel_helpers/AsyncGenerator/AsyncGenerator.js +3 -16
- package/dist/babel_helpers/applyDecoratorDescriptor/applyDecoratorDescriptor.js +0 -5
- package/dist/babel_helpers/applyDecs/applyDecs.js +54 -241
- package/dist/babel_helpers/applyDecs2023/applyDecs2023.js +47 -195
- package/dist/babel_helpers/arrayLikeToArray/arrayLikeToArray.js +0 -2
- package/dist/babel_helpers/arrayWithoutHoles/arrayWithoutHoles.js +2 -1
- package/dist/babel_helpers/assertThisInitialized/assertThisInitialized.js +0 -1
- package/dist/babel_helpers/asyncGeneratorDelegate/asyncGeneratorDelegate.js +4 -14
- package/dist/babel_helpers/asyncIterator/asyncIterator.js +5 -20
- package/dist/babel_helpers/asyncToGenerator/asyncToGenerator.js +2 -8
- package/dist/babel_helpers/awaitAsyncGenerator/awaitAsyncGenerator.js +1 -3
- package/dist/babel_helpers/classApplyDescriptorDestructureSet/classApplyDescriptorDestructureSet.js +0 -4
- package/dist/babel_helpers/classApplyDescriptorGet/classApplyDescriptorGet.js +0 -1
- package/dist/babel_helpers/classApplyDescriptorSet/classApplyDescriptorSet.js +0 -1
- package/dist/babel_helpers/classExtractFieldDescriptor/classExtractFieldDescriptor.js +0 -1
- package/dist/babel_helpers/classPrivateFieldLooseBase/classPrivateFieldLooseBase.js +0 -1
- package/dist/babel_helpers/classPrivateMethodGet/classPrivateMethodGet.js +0 -1
- package/dist/babel_helpers/construct/construct.js +5 -5
- package/dist/babel_helpers/createClass/createClass.js +0 -1
- package/dist/babel_helpers/createForOfIteratorHelper/createForOfIteratorHelper.js +5 -9
- package/dist/babel_helpers/createForOfIteratorHelperLoose/createForOfIteratorHelperLoose.js +2 -3
- package/dist/babel_helpers/createRawReactElement/createRawReactElement.js +2 -8
- package/dist/babel_helpers/createSuper/createSuper.js +2 -4
- package/dist/babel_helpers/decorate/decorate.js +60 -311
- package/dist/babel_helpers/defaults/defaults.js +0 -3
- package/dist/babel_helpers/defineEnumerableProperties/defineEnumerableProperties.js +2 -5
- package/dist/babel_helpers/defineProperty/defineProperty.js +0 -1
- package/dist/babel_helpers/extends/extends.js +0 -3
- package/dist/babel_helpers/get/get.js +0 -3
- package/dist/babel_helpers/getPrototypeOf/getPrototypeOf.js +2 -1
- package/dist/babel_helpers/inherits/inherits.js +2 -3
- package/dist/babel_helpers/instanceof/instanceof.js +0 -1
- package/dist/babel_helpers/interopRequireWildcard/interopRequireWildcard.js +0 -10
- package/dist/babel_helpers/isNativeReflectConstruct/isNativeReflectConstruct.js +6 -6
- package/dist/babel_helpers/iterableToArrayLimit/iterableToArrayLimit.js +0 -5
- package/dist/babel_helpers/iterableToArrayLimitLoose/iterableToArrayLimitLoose.js +2 -5
- package/dist/babel_helpers/jsx/jsx.js +2 -8
- package/dist/babel_helpers/maybeArrayLike/maybeArrayLike.js +2 -3
- package/dist/babel_helpers/objectDestructuringEmpty/objectDestructuringEmpty.js +1 -1
- package/dist/babel_helpers/objectSpread/objectSpread.js +4 -6
- package/dist/babel_helpers/objectSpread2/objectSpread2.js +3 -8
- package/dist/babel_helpers/objectWithoutProperties/objectWithoutProperties.js +0 -3
- package/dist/babel_helpers/objectWithoutPropertiesLoose/objectWithoutPropertiesLoose.js +0 -2
- package/dist/babel_helpers/possibleConstructorReturn/possibleConstructorReturn.js +0 -1
- package/dist/babel_helpers/regeneratorRuntime/regeneratorRuntime.js +634 -0
- package/dist/babel_helpers/set/set.js +2 -12
- package/dist/babel_helpers/superPropBase/superPropBase.js +0 -1
- package/dist/babel_helpers/taggedTemplateLiteral/taggedTemplateLiteral.js +0 -1
- package/dist/babel_helpers/taggedTemplateLiteralLoose/taggedTemplateLiteralLoose.js +0 -1
- package/dist/babel_helpers/toPrimitive/toPrimitive.js +1 -5
- package/dist/babel_helpers/typeof/typeof.js +0 -2
- package/dist/babel_helpers/wrapNativeSuper/wrapNativeSuper.js +0 -7
- package/dist/babel_helpers/wrapRegExp/wrapRegExp.js +5 -19
- package/dist/controllable_child_process.mjs +17 -27
- package/dist/controllable_worker_thread.mjs +4 -16
- package/dist/js/autoreload.js +13 -56
- package/dist/js/execute_using_dynamic_import.js +40 -164
- package/dist/js/global_this.js +2 -10
- package/dist/js/import_meta_hot.js +3 -9
- package/dist/js/new_stylesheet.js +0 -59
- package/dist/js/regenerator_runtime.js +80 -156
- package/dist/js/s.js +25 -113
- package/dist/js/s.js.map +10 -10
- package/dist/js/script_type_module_supervisor.js +4 -13
- package/dist/js/server_events_client.js +10 -38
- package/dist/js/supervisor.js +25 -167
- package/dist/js/v8_coverage.js +29 -92
- package/dist/js/ws.js +239 -717
- package/dist/main.js +761 -4155
- package/package.json +6 -6
- package/src/plugins/import_meta_url/client/import_meta_url_browser.js +1 -2
- package/src/plugins/import_meta_url/client/import_meta_url_commonjs.mjs +1 -1
- package/src/plugins/plugins.js +1 -1
- package/src/plugins/transpilation/as_js_classic/helpers-string.js +1 -0
- package/src/plugins/transpilation/babel/global_this/client/global_this.js +0 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* @minVersion 7.0.0-beta.0 */
|
|
2
|
+
|
|
2
3
|
import OverloadYield from "../overloadYield/overloadYield.js";
|
|
3
4
|
export default function AsyncGenerator(gen) {
|
|
4
5
|
var front, back;
|
|
5
|
-
|
|
6
6
|
function send(key, arg) {
|
|
7
7
|
return new Promise(function (resolve, reject) {
|
|
8
8
|
var request = {
|
|
@@ -12,7 +12,6 @@ export default function AsyncGenerator(gen) {
|
|
|
12
12
|
reject: reject,
|
|
13
13
|
next: null
|
|
14
14
|
};
|
|
15
|
-
|
|
16
15
|
if (back) {
|
|
17
16
|
back = back.next = request;
|
|
18
17
|
} else {
|
|
@@ -21,7 +20,6 @@ export default function AsyncGenerator(gen) {
|
|
|
21
20
|
}
|
|
22
21
|
});
|
|
23
22
|
}
|
|
24
|
-
|
|
25
23
|
function resume(key, arg) {
|
|
26
24
|
try {
|
|
27
25
|
var result = gen[key](arg);
|
|
@@ -42,7 +40,6 @@ export default function AsyncGenerator(gen) {
|
|
|
42
40
|
// not visible to the (sync) yield*.
|
|
43
41
|
// The other part of this implementation is in asyncGeneratorDelegate.
|
|
44
42
|
var nextKey = key === "return" ? "return" : "next";
|
|
45
|
-
|
|
46
43
|
if (!value.k || arg.done) {
|
|
47
44
|
// await or end of yield*
|
|
48
45
|
return resume(nextKey, arg);
|
|
@@ -51,7 +48,6 @@ export default function AsyncGenerator(gen) {
|
|
|
51
48
|
arg = gen[nextKey](arg).value;
|
|
52
49
|
}
|
|
53
50
|
}
|
|
54
|
-
|
|
55
51
|
settle(result.done ? "return" : "normal", arg);
|
|
56
52
|
}, function (err) {
|
|
57
53
|
resume("throw", err);
|
|
@@ -60,7 +56,6 @@ export default function AsyncGenerator(gen) {
|
|
|
60
56
|
settle("throw", err);
|
|
61
57
|
}
|
|
62
58
|
}
|
|
63
|
-
|
|
64
59
|
function settle(type, value) {
|
|
65
60
|
switch (type) {
|
|
66
61
|
case "return":
|
|
@@ -69,11 +64,9 @@ export default function AsyncGenerator(gen) {
|
|
|
69
64
|
done: true
|
|
70
65
|
});
|
|
71
66
|
break;
|
|
72
|
-
|
|
73
67
|
case "throw":
|
|
74
68
|
front.reject(value);
|
|
75
69
|
break;
|
|
76
|
-
|
|
77
70
|
default:
|
|
78
71
|
front.resolve({
|
|
79
72
|
value: value,
|
|
@@ -81,35 +74,29 @@ export default function AsyncGenerator(gen) {
|
|
|
81
74
|
});
|
|
82
75
|
break;
|
|
83
76
|
}
|
|
84
|
-
|
|
85
77
|
front = front.next;
|
|
86
|
-
|
|
87
78
|
if (front) {
|
|
88
79
|
resume(front.key, front.arg);
|
|
89
80
|
} else {
|
|
90
81
|
back = null;
|
|
91
82
|
}
|
|
92
83
|
}
|
|
84
|
+
this._invoke = send;
|
|
93
85
|
|
|
94
|
-
|
|
95
|
-
|
|
86
|
+
// Hide "return" method if generator return is not supported
|
|
96
87
|
if (typeof gen.return !== "function") {
|
|
97
88
|
this.return = undefined;
|
|
98
89
|
}
|
|
99
90
|
}
|
|
100
|
-
|
|
101
91
|
AsyncGenerator.prototype[typeof Symbol === "function" && Symbol.asyncIterator || "@@asyncIterator"] = function () {
|
|
102
92
|
return this;
|
|
103
93
|
};
|
|
104
|
-
|
|
105
94
|
AsyncGenerator.prototype.next = function (arg) {
|
|
106
95
|
return this._invoke("next", arg);
|
|
107
96
|
};
|
|
108
|
-
|
|
109
97
|
AsyncGenerator.prototype.throw = function (arg) {
|
|
110
98
|
return this._invoke("throw", arg);
|
|
111
99
|
};
|
|
112
|
-
|
|
113
100
|
AsyncGenerator.prototype.return = function (arg) {
|
|
114
101
|
return this._invoke("return", arg);
|
|
115
102
|
};
|
|
@@ -6,24 +6,19 @@ export default function _applyDecoratedDescriptor(target, property, decorators,
|
|
|
6
6
|
});
|
|
7
7
|
desc.enumerable = Boolean(desc.enumerable);
|
|
8
8
|
desc.configurable = Boolean(desc.configurable);
|
|
9
|
-
|
|
10
9
|
if ("value" in desc || desc.initializer) {
|
|
11
10
|
desc.writable = true;
|
|
12
11
|
}
|
|
13
|
-
|
|
14
12
|
desc = decorators.slice().reverse().reduce(function (desc, decorator) {
|
|
15
13
|
return decorator(target, property, desc) || desc;
|
|
16
14
|
}, desc);
|
|
17
|
-
|
|
18
15
|
if (context && desc.initializer !== void 0) {
|
|
19
16
|
desc.value = desc.initializer ? desc.initializer.call(context) : void 0;
|
|
20
17
|
desc.initializer = undefined;
|
|
21
18
|
}
|
|
22
|
-
|
|
23
19
|
if (desc.initializer === void 0) {
|
|
24
20
|
Object.defineProperty(target, property, desc);
|
|
25
21
|
desc = null;
|
|
26
22
|
}
|
|
27
|
-
|
|
28
23
|
return desc;
|
|
29
24
|
}
|