/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/cases/mjs/non-enumerable/weird-module.js
8 строк
302 B
Tobias Koppers
make visible exports from non-harmony modules more consistent
16 ноя 2020, 19:19
16 ноя 2020, 19:19
590aacc
Код
Авторство
О чём код?
const sym = Symbol("sym"); exports.sym = sym; exports.prop = true; Object.defineProperty(exports, "nonEnumerable", { value: true }); exports[sym] = true; const p = { protoProp: true, [sym]: true }; Object.setPrototypeOf(exports, p); Object.defineProperty(p, "nonEnumerablePrototype", { value: true });