]> gitweb.factorcode.org Git - factor.git/commitdiff
Revert "compiler.units: always call definition observers at the end of a compilation...
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 11 Jan 2022 23:00:24 +0000 (15:00 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 11 Jan 2022 23:00:24 +0000 (15:00 -0800)
This reverts commit 68200f7703ee4afcd49824e11448c141dd089102.

core/compiler/units/units.factor

index 3a50096a0bbbdf6431443cbacf80dc867ac1e9ec..9792bd525621b7a5c9295e07205d6de2f91bd1b4 100644 (file)
@@ -151,8 +151,8 @@ M: object always-bump-effect-counter? drop f ;
     ] when ;
 
 : notify-observers ( -- )
-    updated-definitions notify-definition-observers
-    notify-error-observers ;
+    updated-definitions dup null?
+    [ drop ] [ notify-definition-observers notify-error-observers ] if ;
 
 : update-existing? ( defs -- ? )
     new-words get [ in? not ] curry any? ;