Software: Apache. PHP/8.3.27 uname -a: Linux pdx1-shared-a4-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64 uid=6659440(dh_z2jmpm) gid=2086089(pg10499364) groups=2086089(pg10499364) Safe-mode: OFF (not secure) /usr/share/nodejs/webassemblyjs/esm/compiler/compile/ drwxr-xr-x | |
| Viewing file: Select action/file-type: function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
import { transform as wastIdentifierToIndex } from "@webassemblyjs/ast/lib/transform/wast-identifier-to-index";
import { transform as denormalizeTypeReferences } from "@webassemblyjs/ast/lib/transform/denormalize-type-references";
import { toIR } from "@webassemblyjs/helper-compiler";
var t = require("@webassemblyjs/ast");
import validateAST from "@webassemblyjs/validation";
export var Module = function Module(ir, ast, exports, imports) {
_classCallCheck(this, Module);
this._ir = ir;
this._ast = ast;
this.exports = exports;
this.imports = imports;
};
export function createCompiledModule(ast) {
var exports = [];
var imports = []; // Do compile-time ast manipulation in order to remove WAST
// semantics during execution
denormalizeTypeReferences(ast);
wastIdentifierToIndex(ast);
validateAST(ast);
t.traverse(ast, {
ModuleExport: function (_ModuleExport) {
function ModuleExport(_x) {
return _ModuleExport.apply(this, arguments);
}
ModuleExport.toString = function () {
return _ModuleExport.toString();
};
return ModuleExport;
}(function (_ref) {
var node = _ref.node;
if (node.descr.exportType === "Func") {
exports.push({
name: node.name,
kind: "function"
});
}
})
});
/**
* Compile
*/
var ir = toIR(ast);
return new Module(ir, ast, exports, imports);
} |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0119 ]-- |