25 lines
698 B
JavaScript
25 lines
698 B
JavaScript
// Module ID: 4678
|
|
// Function ID: 4679
|
|
// Name: shimStringTrim
|
|
// Dependencies: [1424, 4671, 1425]
|
|
|
|
// Module 4678 (shimStringTrim)
|
|
import hasPropertyDescriptors from "hasPropertyDescriptors" /* 1424 */;
|
|
import defineDataProperty from "defineDataProperty" /* 1425 */;
|
|
import getPolyfill from "getPolyfill" /* 4671 */;
|
|
|
|
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;
|
|
};
|