<commit_before>"use strict";
const { assert } = require("chai");
const { describe, it } = require("mocha-sugar-free");
const { delay } = require("../util.js");

const { JSDOM, VirtualConsole } = require("../..");
const jsGlobals = Object.keys(require("../../lib/jsdom/browser/js-globals.json"));

// Node 10 has a bug with the vm module that causes some global-related tests to fail.
const hasNode10 = process.versions.node && Number(process.versions.node.split(".")[0]) >= 10;<commit_msg>Only skip certain global-related tests on Node v10<commit_after>"use strict";
const { assert } = require("chai");
const { describe, it } = require("mocha-sugar-free");
const { delay } = require("../util.js");

const { JSDOM, VirtualConsole } = require("../..");
const jsGlobals = Object.keys(require("../../lib/jsdom/browser/js-globals.json"));

// Node 10 has a bug with the vm module that causes some global-related tests to fail.
const hasNode10 = process.versions.node && Number(process.versions.node.split(".")[0]) === 10;
{'fraction_non_alphanumeric': 0.1889763779527559, 'fraction_numerical': 0.015748031496062992, 'mean_word_length': 4.324607329842932, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5877396', 'n_tokens_mistral': 322, 'n_tokens_neox': 307, 'n_words': 86}