We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14a7bbb commit cf49248Copy full SHA for cf49248
src/Convertor.js
@@ -509,7 +509,7 @@ class Convertor {
509
}
510
511
isCyclic(x, bReturnReport) {
512
- var a_sKeys = [],
+ let a_sKeys = [],
513
a_oStack = [],
514
wm_oSeenObjects = new WeakMap(), //# see: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap
515
oReturnVal = {
@@ -518,7 +518,7 @@ class Convertor {
518
};
519
//# Setup the recursive logic to locate any circular references while kicking off the initial call
520
(function doIsCyclic(oTarget, sKey) {
521
- var a_sTargetKeys, sCurrentKey, i;
+ let a_sTargetKeys, sCurrentKey, i;
522
523
//# If we've seen this oTarget before, flip our .found to true
524
if (wm_oSeenObjects.has(oTarget)) {
0 commit comments