decord/source/4404_shimStringTrim.js

22 lines
543 B
JavaScript
Raw Normal View History

2026-07-23 10:11:24 +00:00
// Module ID: 4404
2026-07-24 07:16:23 +00:00
// Function ID: 38867
2026-07-20 16:05:17 +00:00
// Name: shimStringTrim
2026-07-23 10:11:24 +00:00
// Dependencies: [1381, 4397, 1382]
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
// Module 4404 (shimStringTrim)
let closure_2 = require("hasPropertyDescriptors")();
2026-07-20 16:05:17 +00:00
export default function shimStringTrim() {
2026-07-23 10:11:24 +00:00
const tmp = require(4397) /* getPolyfill */();
2026-07-20 16:05:17 +00:00
if (String.prototype.trim !== tmp) {
2026-07-23 10:11:24 +00:00
const tmp5 = require(1382) /* defineDataProperty */;
2026-07-20 16:05:17 +00:00
const _String = String;
if (closure_2) {
tmp5(prototype, "trim", tmp, true);
} else {
tmp5(prototype, "trim", tmp);
}
}
return tmp;
};