]> gitweb.factorcode.org Git - factor.git/commitdiff
Revert "Revert "compiler.units: always call definition observers at the end of a...
authorJohn Benediktsson <mrjbq7@gmail.com>
Wed, 12 Jan 2022 00:06:01 +0000 (16:06 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Wed, 12 Jan 2022 00:06:01 +0000 (16:06 -0800)
This reverts commit 14139ab4030f73054a4cc77ceb2d7d740caad2ef.

core/compiler/units/units.factor

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