示例#1
0
  /** @unexpose */
  static Object _loop(final Scope s, final JSFunction f, final int start, final int end) {
    Object blah = s.getParent().getThis();
    s.setThis(blah);

    Boolean old = f.setUsePassedInScopeTL(true);

    for (int i = start; i < end; i++) f.call(s, i);

    f.setUsePassedInScopeTL(old);

    s.clearThisNormal(null);

    return null;
  }