Skip to content

Commit cf49248

Browse files
committed
use let
1 parent 14a7bbb commit cf49248

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Convertor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ class Convertor {
509509
}
510510

511511
isCyclic(x, bReturnReport) {
512-
var a_sKeys = [],
512+
let a_sKeys = [],
513513
a_oStack = [],
514514
wm_oSeenObjects = new WeakMap(), //# see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap
515515
oReturnVal = {
@@ -518,7 +518,7 @@ class Convertor {
518518
};
519519
//# Setup the recursive logic to locate any circular references while kicking off the initial call
520520
(function doIsCyclic(oTarget, sKey) {
521-
var a_sTargetKeys, sCurrentKey, i;
521+
let a_sTargetKeys, sCurrentKey, i;
522522

523523
//# If we've seen this oTarget before, flip our .found to true
524524
if (wm_oSeenObjects.has(oTarget)) {

0 commit comments

Comments
 (0)