"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../Class/Functional");
const stringify_1 = require("../../../../spec/stringify");
const _ids_1 = require("../../../_ids");
class Stringify extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['a'],
            o: ['str'],
        }, {}, system, _ids_1.ID_STRINGIFY);
    }
    f({ a }, done) {
        let str;
        try {
            str = (0, stringify_1.stringify)(a);
        }
        catch (err) {
            done(undefined, err.message.toLowerCase());
            return;
        }
        done({
            str,
        });
    }
}
exports.default = Stringify;
//# sourceMappingURL=index.js.map