void jspeiLoadScopesFromVar(JsVar *arr) {
  execInfo.scopeCount = 0;

  if (jsvIsArray(arr)) {
    JsvObjectIterator it;
    jsvObjectIteratorNew(&it, arr);
    while (jsvObjectIteratorHasValue(&it)) {
      execInfo.scopes[execInfo.scopeCount++] = jsvObjectIteratorGetValue(&it);
      jsvObjectIteratorNext(&it);
    }
    jsvObjectIteratorFree(&it);
  } else
    execInfo.scopes[execInfo.scopeCount++] = jsvLockAgain(arr);
}
void jspeiLoadScopesFromVar(JsVar *arr) {
  execInfo.scopeCount = 0;

  if (jsvIsArray(arr)) {
    JsvObjectIterator it;
    jsvObjectIteratorNew(&it, arr);
    while (jsvObjectIteratorHasValue(&it)) {
      execInfo.scopes[execInfo.scopeCount++] = jsvObjectIteratorGetValue(&it);
      jsvObjectIteratorNext(&it);
    }
    jsvObjectIteratorFree(&it);
  } else
    execInfo.scopes[execInfo.scopeCount++] = jsvLockAgain(arr);
}