diff --git a/harness/assert.js b/harness/assert.js
index 58e98e37b720770099a90e32b39dd19eb6cf22f7..aee3b871df21e0564a3d35d4a29e0f045e4bbfce 100644
--- a/harness/assert.js
+++ b/harness/assert.js
@@ -27,7 +27,12 @@ assert._isSameValue = function (a, b) {
 };
 
 assert.sameValue = function (actual, expected, message) {
-  if (assert._isSameValue(actual, expected)) {
+  try {
+    if (assert._isSameValue(actual, expected)) {
+      return;
+    }
+  } catch (error) {
+    $ERROR(message + ' (_isSameValue operation threw) ' + error);
     return;
   }