feat: only remove comments when specified in the test (#54372)

This commit is contained in:
Oliver Eyton-Williams
2024-04-26 03:03:43 +02:00
committed by GitHub
parent f8426e617e
commit adfb87e898
187 changed files with 299 additions and 340 deletions

View File

@@ -18,7 +18,6 @@ interface PythonRunEvent extends MessageEvent {
editableContents: string;
original: { [id: string]: string };
};
removeComments: boolean;
firstTest: unknown;
testString: string;
build: string;
@@ -64,7 +63,6 @@ void setupPyodide();
ctx.onmessage = async (e: PythonRunEvent) => {
const pyodide = await setupPyodide();
// TODO: Use removeComments when we have it
/* eslint-disable @typescript-eslint/no-unused-vars */
const code = (e.data.code.contents || '').slice();
const editableContents = (e.data.code.editableContents || '').slice();