[gjs] maint: Remove erroneous comment



commit 63f042cc65d6d8506ec246f07e7b7d40f4583f8f
Author: Philip Chimento <philip endlessm com>
Date:   Mon Nov 14 15:59:34 2016 -0800

    maint: Remove erroneous comment
    
    I added this comment with an incorrect understanding of how
    JSAutoSaveExceptionState works. It can't be used for this purpose, since
    it doesn't save and restore the state of "no exception".
    
    https://bugzilla.gnome.org/show_bug.cgi?id=751252

 gi/repo.cpp |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/gi/repo.cpp b/gi/repo.cpp
index 09ef1f0..577aedd 100644
--- a/gi/repo.cpp
+++ b/gi/repo.cpp
@@ -609,7 +609,6 @@ lookup_override_function(JSContext   *cx,
     return function.toObjectOrNull();
 
  fail:
-    /* COMPAT: Use JS::AutoSaveExceptionState and move rooting to be late */
     JS_ClearPendingException(cx);
     return NULL;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]