24 lines
706 B
JavaScript
24 lines
706 B
JavaScript
// Module ID: 4712
|
|
// Function ID: 4713
|
|
// Name: CreateDataProperty
|
|
// Dependencies: [4650, 541, 4697, 4713]
|
|
|
|
// Module 4712 (CreateDataProperty)
|
|
import isObject from "isObject" /* 4650 */;
|
|
|
|
|
|
export default function CreateDataProperty(arg0, arg1, arg2) {
|
|
if (isObject(arg0)) {
|
|
if (tmp(4697)(arg1)) {
|
|
const obj = { "[[Configurable]]": true, "[[Enumerable]]": true, "[[Value]]": null, "[[Writable]]": true };
|
|
obj[2] = arg2;
|
|
return tmp(4713)(arg0, arg1, obj);
|
|
} else {
|
|
const tmp10 = new tmp(541)("Assertion failed: P is not a Property Key");
|
|
throw tmp10;
|
|
}
|
|
} else {
|
|
const tmp5 = new tmp(541)("Assertion failed: Type(O) is not Object");
|
|
throw tmp5;
|
|
}
|
|
};
|