import '../../../assert/js/assert.js';
import '../../../globals.js';
/**
 * @param node - Prevent changes on this Node
 */
const assertNoAdditionalChildren = function (node) {
    if (assert) {
        node.insertChild = function (index, node, isComposite) {
            assert && assert(false, 'Attempt to insert child into Leaf');
            return node;
        };
    }
};
export default assertNoAdditionalChildren;
//# sourceMappingURL=assertNoAdditionalChildren.js.map