()
| 378 | // as the entire namespace (module.exports) and updates when this function is |
| 379 | // called so that APMs and other behavior are supported. |
| 380 | syncExports() { |
| 381 | const names = this.exportKeys; |
| 382 | if (this.module) { |
| 383 | for (let i = 0; i < names.length; i++) { |
| 384 | const exportName = names[i]; |
| 385 | if (exportName === 'default') continue; |
| 386 | this.module.setExport(exportName, |
| 387 | getOwn(this.exports, exportName, this.exports)); |
| 388 | } |
| 389 | } |
| 390 | } |
| 391 | |
| 392 | compileForInternalLoader() { |
| 393 | if (this.loaded || this.loading) { |
no test coverage detected