third_party/closure-compiler/src/test/com/google/javascript/jscomp/TypedScopeCreatorTest.java
// Just check that this doesn't cause a StackOverflowError.
Just check that this doesn't cause a StackOverflowError.
Just check that this doesn ' t cause a StackOverflowError .
@Test
  public void testArgumentsStackOverflow() {
    String js = lines(
        "/**",
        " * @fileoverview",
        " * @suppress {es5Strict}",
        " */",
        "",
        "function getStackTrace() {",
        "  try {",
        "    throw 'error';",
        "  } catch (e) {",
        "    return 0;",
        "  }",
        "",
        "  if (typeof (arguments.caller) != 'undefined') {}",
        "",
        "  return '';",
        "}",
        "");
    testSame(js);
  }
@ Test public void testArgumentsStackOverflow ( ) { String js = lines ( "/**" , " * @fileoverview" , " * @suppress {es5Strict}" , " */" , "" , "function getStackTrace() {" , "  try {" , "    throw 'error';" , "  } catch (e) {" , "    return 0;" , "  }" , "" , "  if (typeof (arguments.caller) != 'undefined') {}" , "" , "  return '';" , "}" , "" ) ; testSame ( js ) ; }
Just check that this doesn't cause a StackOverflowError.
Just check that this doesn ' t cause a StackOverflowError .