"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parseMemorySpec = parseMemorySpec;
const clone_1 = require("../../util/clone");
const evaluateMemorySpec_1 = require("./evaluateMemorySpec");
function parseMemorySpec(memory, specs, classes, resolver = () => {
    return undefined;
}) {
    const memoryClone = (0, clone_1.clone)(memory);
    (0, evaluateMemorySpec_1.evaluateMemorySpec)(memoryClone, specs, classes, resolver);
    return memoryClone;
}
//# sourceMappingURL=parseMemorySpec.js.map