Explorar o código

Better try catch management

David Catuhe %!s(int64=5) %!d(string=hai) anos
pai
achega
d3455d24a4
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      Playground/js/main.js

+ 1 - 3
Playground/js/main.js

@@ -14,9 +14,7 @@ fastEval = function(code) {
     var script = document.createElement('script');
     script.setAttribute('type', 'text/javascript');
 
-    script.innerHTML = `try {
-        ${code};
-    }
+    script.innerHTML = `try {${code};}
     catch(e) {
         handleException(globalParent, e);
     }`;