소스 검색

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);
     }`;