Files
discord-decomp/_bundle/CreateDataProperty.js
T
2026-11-01 12:12:55 +02:00

20 lines
688 B
JavaScript

// Metro module 4496 (f4497).
import * as _isObject from "./isObject_4434";
import * as _Module541 from "./Module541";
import * as _isPropertyKey from "./isPropertyKey";
import * as _OrdinaryDefineOwnProperty from "./OrdinaryDefineOwnProperty";
module.exports = function CreateDataProperty(a0, a1, a2) {
if (_isObject(a0)) {
if (_isPropertyKey(a1)) {
return _OrdinaryDefineOwnProperty(a0, a1, {
"[[Configurable]]": true,
"[[Enumerable]]": true,
"[[Value]]": a2,
"[[Writable]]": true
});
}
throw new _Module541("Assertion failed: P is not a Property Key");
}
throw new _Module541("Assertion failed: Type(O) is not Object");
};