(staticModuleRecord, moduleSpecifier)
| 9023 | } |
| 9024 | |
| 9025 | function validateStaticModuleRecord(staticModuleRecord, moduleSpecifier) { |
| 9026 | isObject(staticModuleRecord)|| |
| 9027 | Fail `Static module records must be of type object, got ${q( |
| 9028 | staticModuleRecord) |
| 9029 | }, for module ${q(moduleSpecifier)}`; |
| 9030 | const { imports, exports, reexports= []}= staticModuleRecord; |
| 9031 | isArray(imports)|| |
| 9032 | Fail `Property 'imports' of a static module record must be an array, got ${q( |
| 9033 | imports) |
| 9034 | }, for module ${q(moduleSpecifier)}`; |
| 9035 | isArray(exports)|| |
| 9036 | Fail `Property 'exports' of a precompiled module record must be an array, got ${q( |
| 9037 | exports) |
| 9038 | }, for module ${q(moduleSpecifier)}`; |
| 9039 | isArray(reexports)|| |
| 9040 | Fail `Property 'reexports' of a precompiled module record must be an array if present, got ${q( |
| 9041 | reexports) |
| 9042 | }, for module ${q(moduleSpecifier)}`; |
| 9043 | } |
| 9044 | |
| 9045 | const instantiate= ( |
| 9046 | compartmentPrivateFields, |
no test coverage detected