[bugzilla-gnome-org-extensions] Fix definition of assertNotReached()
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bugzilla-gnome-org-extensions] Fix definition of assertNotReached()
- Date: Thu, 20 Nov 2014 22:17:06 +0000 (UTC)
commit dc2fb672f3cf77352e42d6725e3fe87c14d44679
Author: Owen W. Taylor <otaylor fishsoup net>
Date: Wed Sep 9 00:04:49 2009 -0400
Fix definition of assertNotReached()
js/utils.js | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/js/utils.js b/js/utils.js
index 2c21b2e..81a220e 100644
--- a/js/utils.js
+++ b/js/utils.js
@@ -6,9 +6,7 @@ function assert(condition) {
}
function assertNotReached() {
- if (expected != value) {
- throw new Error("Assertion failed: should not be reached");
- }
+ throw new Error("Assertion failed: should not be reached");
}
function strip(string) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]