"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.wrapValue = wrapValue;
const _1 = require("../Class/$");
const ObjectReadOnly_1 = require("../exception/ObjectReadOnly");
function wrapValue(data, system) {
    return new (class Value extends _1.$ {
        constructor() {
            super(...arguments);
            this.__ = ['V'];
        }
        read() {
            return data;
        }
        write(data) {
            throw new ObjectReadOnly_1.ReadOnlyError('value');
        }
    })(system);
}
//# sourceMappingURL=Value.js.map