1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- "use strict";
- const Generator = require("../Generator");
- const TYPES = new Set(["webassembly"]);
- class AsyncWebAssemblyGenerator extends Generator {
- constructor(options) {
- super();
- this.options = options;
- }
-
- getTypes(module) {
- return TYPES;
- }
-
- getSize(module, type) {
- const originalSource = module.originalSource();
- if (!originalSource) {
- return 0;
- }
- return originalSource.size();
- }
-
- generate(module, generateContext) {
- return module.originalSource();
- }
- }
- module.exports = AsyncWebAssemblyGenerator;
|