mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-02-16 04:00:53 -05:00
feat: only remove comments when specified in the test (#54372)
This commit is contained in:
committed by
GitHub
parent
f8426e617e
commit
adfb87e898
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user