Revert change to tsworker?

This commit is contained in:
Snarling 2022-08-08 14:01:22 -04:00
parent 208495e269
commit c7ee92bd71

@ -26168,7 +26168,7 @@ var ts;
* @param input Template string input strings
* @param args Names which need to be made file-level unique
*/
function helpers.string(input) {
function helperString(input) {
var args = [];
for (var _i = 1; _i < arguments.length; _i++) {
args[_i - 1] = arguments[_i];
@ -26183,7 +26183,7 @@ var ts;
return result;
};
}
ts.helpers.string( = helpers.string(;
ts.helperString = helperString;
// TypeScript Helpers
ts.decorateHelper = {
name: "typescript:decorate",
@ -26538,12 +26538,12 @@ var ts;
ts.asyncSuperHelper = {
name: "typescript:async-super",
scoped: true,
text: helpers.string(__makeTemplateObject(["\n const ", " = name => super[name];"], ["\n const ", " = name => super[name];"]), "_superIndex")
text: helperString(__makeTemplateObject(["\n const ", " = name => super[name];"], ["\n const ", " = name => super[name];"]), "_superIndex")
};
ts.advancedAsyncSuperHelper = {
name: "typescript:advanced-async-super",
scoped: true,
text: helpers.string(__makeTemplateObject(["\n const ", " = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"], ["\n const ", " = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]), "_superIndex")
text: helperString(__makeTemplateObject(["\n const ", " = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"], ["\n const ", " = (function (geti, seti) {\n const cache = Object.create(null);\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\n })(name => super[name], (name, value) => super[name] = value);"]), "_superIndex")
};
function isCallToHelper(firstSegment, helperName) {
return ts.isCallExpression(firstSegment)