decord/source/4678_shimStringTrim.js

26 lines
698 B
JavaScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 4678
// Function ID: 4679
2026-08-24 06:08:38 +00:00
// Name: shimStringTrim
2026-08-25 06:04:03 +00:00
// Dependencies: [1424, 4671, 1425]
2026-08-24 06:08:38 +00:00
2026-08-25 06:04:03 +00:00
// Module 4678 (shimStringTrim)
2026-08-24 06:08:38 +00:00
import hasPropertyDescriptors from "hasPropertyDescriptors" /* 1424 */;
import defineDataProperty from "defineDataProperty" /* 1425 */;
2026-08-25 06:04:03 +00:00
import getPolyfill from "getPolyfill" /* 4671 */;
2026-08-24 06:08:38 +00:00
let closure_2 = hasPropertyDescriptors();
export default function shimStringTrim() {
const tmp3 = getPolyfill();
if (String.prototype.trim !== tmp3) {
const tmpResult = defineDataProperty;
const _String = String;
if (closure_2) {
tmpResult(prototype, "trim", tmp3, true);
} else {
tmpResult(prototype, "trim", tmp3);
}
}
return tmp3;
};