浏览代码

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