소스 검색

Use const

Sebastien Lebreton 5 년 전
부모
커밋
a815ff212a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Playground/js/definitionWorker.js

+ 1 - 1
Playground/js/definitionWorker.js

@@ -85,7 +85,7 @@ function visit(node) {
 
 function processDefinition(code) {
     if (deprecatedCandidates.length == 0) {
-        var sourceFile = ts.createSourceFile('babylon.js', code, ts.ScriptTarget.ESNext, true);
+        const sourceFile = ts.createSourceFile('babylon.js', code, ts.ScriptTarget.ESNext, true);
         ts.forEachChild(sourceFile, visit);
     }