/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/web-worker/web-worker-polyfills.js
20 строк
725 B
Kristofer Baxter
♻️ Remove Notice from JS and Markdown (#35717)
19 авг 2021, 21:21
Не верифицирован
19 авг 2021, 21:21
f564b7e
Код
Авторство
О чём код?
/** * @fileoverview Directly imported into web-worker.js entry point so polyfills * can be used in top-level scope in module dependencies. */ import * as mode from '#core/mode'; import {install as installArrayIncludes} from '#polyfills/array-includes'; import {install as installMathSign} from '#polyfills/math-sign'; import {install as installObjectAssign} from '#polyfills/object-assign'; import {install as installObjectValues} from '#polyfills/object-values'; import {install as installStringStartsWith} from '#polyfills/string-starts-with'; if (!mode.isEsm()) { installArrayIncludes(self); installObjectAssign(self); installObjectValues(self); installMathSign(self); installStringStartsWith(self); }