We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e054600 commit bcd4c47Copy full SHA for bcd4c47
1 file changed
html/js/sandbox.js
@@ -272,6 +272,8 @@
272
}
273
if (stat.type == "VariableDeclaration" && stat.kind != "var")
274
patches.push({from: stat.start, to: stat.start + stat.kind.length, text: "var"})
275
+ if (stat.type == "ClassDeclaration")
276
+ patches.push({from: stat.start, text: "var " + stat.id.name + " = "})
277
278
patches.push({from: tryPos, text: "try{"})
279
patches.push({from: catchPos, text: "}catch(e){__sandbox.error(e);}"})
0 commit comments