<commit_before>'use strict';

const hProto = require('../interface/result.h').prototype;


hProto.node = function ($handler) {

    if (typeof $handler !== 'function') {

        throw new Error('The handler must be callable!');
    }

    $handler(
        this.isErr() ? this._err : null,
        this.isOk()  ? this._val : null,
    );
};<commit_msg>fix comma-error which did not come up in the test<commit_after>'use strict';

const hProto = require('../interface/result.h').prototype;


hProto.node = function ($handler) {

    if (typeof $handler !== 'function') {

        throw new Error('The handler must be callable!');
    }

    $handler(
        this.isErr() ? this._err : null,
        this.isOk()  ? this._val : null
    );
};
{'fraction_non_alphanumeric': 0.16194331983805668, 'fraction_numerical': 0.0, 'mean_word_length': 2.691542288557214, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4783403', 'n_tokens_mistral': 236, 'n_tokens_neox': 226, 'n_words': 61}