diff options
Diffstat (limited to 'includes/external/matrix/node_modules/@babel/runtime/helpers/defineProperty.js')
-rw-r--r-- | includes/external/matrix/node_modules/@babel/runtime/helpers/defineProperty.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/includes/external/matrix/node_modules/@babel/runtime/helpers/defineProperty.js b/includes/external/matrix/node_modules/@babel/runtime/helpers/defineProperty.js new file mode 100644 index 0000000..8762046 --- /dev/null +++ b/includes/external/matrix/node_modules/@babel/runtime/helpers/defineProperty.js @@ -0,0 +1,16 @@ +var toPropertyKey = require("./toPropertyKey.js"); +function _defineProperty(obj, key, value) { + key = toPropertyKey(key); + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + return obj; +} +module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
\ No newline at end of file |