summaryrefslogtreecommitdiff
path: root/alarm/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js
diff options
context:
space:
mode:
Diffstat (limited to 'alarm/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js')
-rw-r--r--alarm/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/alarm/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js b/alarm/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js
new file mode 100644
index 0000000..71bbf1d
--- /dev/null
+++ b/alarm/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js
@@ -0,0 +1,11 @@
+function _classApplyDescriptorSet(receiver, descriptor, value) {
+ if (descriptor.set) {
+ descriptor.set.call(receiver, value);
+ } else {
+ if (!descriptor.writable) {
+ throw new TypeError("attempted to set read only private field");
+ }
+ descriptor.value = value;
+ }
+}
+module.exports = _classApplyDescriptorSet, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file