swc/tests/tsc-references/es6/Symbols/symbolProperty54/input.ts/es5.1.normal/output.js

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);