aboutsummaryrefslogtreecommitdiff
path: root/scripts/suppressExperimentalWarnings.js
blob: dd5cd793ba59d0d606816b115cd6ff7ac648c118 (plain)
1
2
3
4
5
6
process.emit = (originalEmit => function (name, data) {
    if (name === "warning" && data?.name === "ExperimentalWarning")
        return false;

    return originalEmit.apply(process, arguments);
})(process.emit);