mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +03:00
17 lines
366 B
JavaScript
17 lines
366 B
JavaScript
function _defineProperty(obj, key, value) {
|
|
if (key in obj) {
|
|
Object.defineProperty(obj, key, {
|
|
value: value,
|
|
enumerable: true,
|
|
configurable: true,
|
|
writable: true
|
|
});
|
|
} else {
|
|
obj[key] = value;
|
|
}
|
|
return obj;
|
|
}
|
|
//@target: ES6
|
|
var obj = _defineProperty({
|
|
}, Symbol.prototype, 0);
|