sebavan hace 6 años
padre
commit
e513283dc9
Se han modificado 1 ficheros con 6 adiciones y 1 borrados
  1. 6 1
      Playground/js/indexWebGPU.js

+ 6 - 1
Playground/js/indexWebGPU.js

@@ -4,7 +4,12 @@ var monacoMode = "javascript";
 
 function getRunCode(jsEditor, callBack) {
     var code = jsEditor.getValue();
-    callBack(code);
+    callBack(code).catch((e) => {
+        showError(e);
+
+        // Also log error in console to help debug playgrounds
+        console.error(e);
+    })
 }