"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../../Class/Functional");
const _ids_1 = require("../../../../_ids");
class Get0 extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['obj', 'name'],
            o: ['value'],
        }, {
            input: {
                obj: {
                    ref: true,
                },
            },
        }, system, _ids_1.ID_GET_0);
    }
    async f({ obj, name }, done, fail) {
        let value;
        try {
            value = await obj.get(name);
        }
        catch (err) {
            fail(err.message);
            return;
        }
        done({ value });
    }
}
exports.default = Get0;
//# sourceMappingURL=index.js.map