decord/source/__polyfill/00xxx/module_150.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

125 lines
3.4 KiB
JavaScript

// Module ID: 150
// Function ID: 151
// Dependencies: [41, 42, 93, 95, 98, 142, 136, 139, 131]
// Module 150
import _possibleConstructorReturnDefault from "_possibleConstructorReturn" /* 93 */;
import _modDef131 from "module_131" /* 131 */;
import _classCallCheck from "_classCallCheck" /* 41 */;
import _createClass from "_createClass" /* 42 */;
import _getPrototypeOf from "_getPrototypeOf" /* 95 */;
import _inherits from "_inherits" /* 98 */;
const require = globalThis.__r;
const ReadOnlyCharacterData = arg1;
function _isNativeReflectConstruct() {
try {
const _Boolean = Boolean;
const call = valueOf.call;
const _Reflect = Reflect;
const _Boolean2 = Boolean;
if (typeof call === "unknown") {
let callResult = valueOf();
} else {
callResult = call(constructResult);
}
closure_0 = !callResult;
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
return closure_0;
};
return _isNativeReflectConstruct();
} catch (err) {
}
}
_possibleConstructorReturnDefault;
class ReadOnlyCharacterData {
constructor() {
self = this;
tmp = closure_3(this, ReadOnlyCharacterData);
tmp2 = hasOwnProperty;
obj = hasOwnProperty(ReadOnlyCharacterData);
tmp3 = closure_4;
if (metroRequire()) {
tmp7 = globalThis;
_Reflect = Reflect;
tmp8 = arguments;
constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor);
} else {
tmp4 = arguments;
tmp5 = arguments;
constructResult = obj(...arguments);
}
return tmp3(self, constructResult);
}
}
_inherits(ReadOnlyCharacterData, _modDef131);
const items = [
{
key: "nextElementSibling",
get() {
return ReadOnlyCharacterData(142).getElementSibling(this, "next");
}
},
{
key: "previousElementSibling",
get() {
return ReadOnlyCharacterData(142).getElementSibling(this, "previous");
}
},
{
key: "data",
get() {
const nativeTextReference = ReadOnlyCharacterData(136).getNativeTextReference(this);
let str = "";
if (null != nativeTextReference) {
str = require("NativeDOMCxx").getTextContent(nativeTextReference);
const obj2 = require("NativeDOMCxx");
}
return str;
}
},
{
key: "length",
get() {
return this.data.length;
}
},
{
key: "textContent",
get() {
return this.data;
}
},
{
key: "nodeValue",
get() {
return this.data;
}
},
{
key: "substringData",
value: function substringData(arg0, arg1) {
const data = this.data;
if (arg0 < 0) {
const _TypeError2 = TypeError;
const _HermesInternal2 = HermesInternal;
const typeError = new TypeError("Failed to execute 'substringData' on 'CharacterData': The offset " + arg0 + " is negative.");
throw typeError;
} else if (arg0 > data.length) {
const _TypeError = TypeError;
const _HermesInternal = HermesInternal;
const typeError1 = new TypeError("Failed to execute 'substringData' on 'CharacterData': The offset " + arg0 + " is greater than the node's length (" + data.length + ").");
throw typeError1;
} else {
let length = arg1;
if (arg1 < 0) {
length = data.length;
}
return data.slice(arg0, arg0 + length);
}
}
}
];
export default _createClass(ReadOnlyCharacterData, items);