MCPcopy Create free account
hub / github.com/mozilla/rhino / codeBug

Method codeBug

rhino/src/main/java/org/mozilla/javascript/Kit.java:351–356  ·  view source on GitHub ↗

Throws RuntimeException to indicate failed assertion. The function never returns and its return type is RuntimeException only to be able to write throw Kit.codeBug() if plain Kit.codeBug() triggers unreachable code error.

()

Source from the content-addressed store, hash-verified

349 * {@code Kit.codeBug()} triggers unreachable code error.
350 */
351 public static RuntimeException codeBug() throws RuntimeException {
352 RuntimeException ex = new IllegalStateException("FAILED ASSERTION");
353 // Print stack trace ASAP
354 ex.printStackTrace(System.err);
355 throw ex;
356 }
357
358 /**
359 * Throws RuntimeException to indicate failed assertion. The function never returns and its

Callers 15

memberRefMethod · 0.95
nameRefMethod · 0.95
setMethod · 0.95
findFunctionMethod · 0.95
getDeclarationScopeMethod · 0.95
MonthFromTimeMethod · 0.95
DateFromTimeMethod · 0.95
EquivalentYearMethod · 0.95
date_parseStringMethod · 0.95
append0PaddedUintMethod · 0.95
makeTimeMethod · 0.95
makeDateMethod · 0.95

Calls 1

printStackTraceMethod · 0.80

Tested by

no test coverage detected