[bugzilla-gnome-org-extensions] Fix definition of assertNotReached()



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]