Files
node/tools/eslint/node_modules/@babel/helpers/lib/helpers/toSetter.js
T
Michaël Zasso 30fdd482a1 tools: move ESLint to tools/eslint
Greatly simplify how ESLint and its plugins are installed.

PR-URL: https://github.com/nodejs/node/pull/53413
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-06-20 14:45:27 +02:00

19 lines
366 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = _toSetter;
function _toSetter(fn, args, thisArg) {
if (!args) args = [];
var l = args.length++;
return Object.defineProperty({}, "_", {
set: function (v) {
args[l] = v;
fn.apply(thisArg, args);
}
});
}
//# sourceMappingURL=toSetter.js.map