18 lines
639 B
JavaScript
18 lines
639 B
JavaScript
// Metro module 4495 (f4496).
|
|
import * as _isObject from "./isObject_4434";
|
|
import * as _Module541 from "./Module541";
|
|
import * as _isPropertyKey from "./isPropertyKey";
|
|
import * as _CreateDataProperty from "./CreateDataProperty";
|
|
module.exports = function CreateDataPropertyOrThrow(a0, a1, a2) {
|
|
if (_isObject(a0)) {
|
|
if (_isPropertyKey(a1)) {
|
|
if (_CreateDataProperty(a0, a1, a2)) {
|
|
return void 0;
|
|
}
|
|
throw new _Module541("unable to create data property");
|
|
}
|
|
throw new _Module541("Assertion failed: P is not a Property Key");
|
|
}
|
|
throw new _Module541("Assertion failed: Type(O) is not Object");
|
|
};
|