From 99c1d9af689e5325f3cf535c4007b3aeb8325229 Mon Sep 17 00:00:00 2001 From: Minteck Date: Tue, 10 Jan 2023 14:54:04 +0100 Subject: Update - This is an automated commit --- .../helpers/classApplyDescriptorDestructureSet.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 school/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js (limited to 'school/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js') diff --git a/school/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js b/school/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js new file mode 100644 index 0000000..3ebfed8 --- /dev/null +++ b/school/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js @@ -0,0 +1,18 @@ +function _classApplyDescriptorDestructureSet(receiver, descriptor) { + if (descriptor.set) { + if (!("__destrObj" in descriptor)) { + descriptor.__destrObj = { + set value(v) { + descriptor.set.call(receiver, v); + } + }; + } + return descriptor.__destrObj; + } else { + if (!descriptor.writable) { + throw new TypeError("attempted to set read only private field"); + } + return descriptor; + } +} +module.exports = _classApplyDescriptorDestructureSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file -- cgit