We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fcda7f commit f7945fbCopy full SHA for f7945fb
benchmark/benchmark.js
@@ -422,7 +422,7 @@ function getWorst (results) {
422
function createTestFunction (Prism, mainLanguage, testFunction) {
423
if (testFunction === 'tokenize') {
424
return code => {
425
- const grammar = Prism.components.getLanguage(mainLanguage);
+ const grammar = Prism.languageRegistry.getLanguage(mainLanguage)?.resolvedGrammar;
426
Prism.tokenize(code, grammar);
427
};
428
}
0 commit comments