25 lines
1.1 KiB
JavaScript
25 lines
1.1 KiB
JavaScript
// Metro module 4484 (f4485).
|
|
import * as _isObject from "./isObject_4434";
|
|
import * as _Module541 from "./Module541";
|
|
import * as _isPropertyKey from "./isPropertyKey";
|
|
import * as _isPropertyDescriptor from "./isPropertyDescriptor";
|
|
import * as _ToPropertyDescriptor from "./ToPropertyDescriptor";
|
|
import * as _DefineOwnProperty from "./DefineOwnProperty";
|
|
import * as _IsDataDescriptor from "./IsDataDescriptor";
|
|
import * as _SameValue from "./SameValue";
|
|
import * as _FromPropertyDescriptor from "./FromPropertyDescriptor";
|
|
module.exports = function DefinePropertyOrThrow(a0, a1, a2) {
|
|
if (_isObject(a0)) {
|
|
if (_isPropertyKey(a1)) {
|
|
const r36 = _isPropertyDescriptor(a2) ? a2 : _ToPropertyDescriptor(a2);
|
|
const r41 = _isPropertyDescriptor(r36);
|
|
if (r41) {
|
|
return _DefineOwnProperty(_IsDataDescriptor, _SameValue, _FromPropertyDescriptor, a0, a1, r36);
|
|
}
|
|
throw new _Module541("Assertion failed: Desc is not a valid Property Descriptor");
|
|
}
|
|
throw new _Module541("Assertion failed: P is not a Property Key");
|
|
}
|
|
throw new _Module541("Assertion failed: Type(O) is not Object");
|
|
};
|