зеркало из https://github.com/mozilla/pjs.git
I made Context.codeBug public so optimizer can use it.
This commit is contained in:
Родитель
7f8725b63d
Коммит
fa68d2fa82
|
@ -2199,8 +2199,10 @@ public class Context {
|
|||
activationNames.remove(name);
|
||||
}
|
||||
|
||||
// Rudimentary support for Design-by-Contract
|
||||
static void codeBug() {
|
||||
/**
|
||||
* Throws RuntimeException to indicate failed assertion.
|
||||
*/
|
||||
public static void codeBug() throws RuntimeException {
|
||||
throw new RuntimeException("FAILED ASSERTION");
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче