瀏覽代碼

Better try catch management

David Catuhe 5 年之前
父節點
當前提交
d3455d24a4
共有 1 個文件被更改,包括 1 次插入3 次删除
  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);
     }`;