]> gitweb.factorcode.org Git - factor.git/commitdiff
ui.debugger: quotation stack effect wants ( .. -- * ), throw causes infinite loop...
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 7 Apr 2016 00:30:22 +0000 (17:30 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 7 Apr 2016 00:35:13 +0000 (17:35 -0700)
basis/debugger/threads/threads.factor
basis/io/thread/thread.factor
basis/ui/debugger/debugger.factor
core/continuations/continuations.factor

index c3fd8284dba768112e5d459ee3eba779b1bc4e62..9f4163aecfffd384b6fad5970c1ba5c2e01a430a 100644 (file)
@@ -15,7 +15,7 @@ IN: debugger.threads
 ! ( error thread -- * )
 [
     dup initial-thread get-global eq? [
-        die drop throw
+        die drop rethrow
     ] [
         [
             error-in-thread. nl
index 9efd22ad8b68fec1c57daa9a9af1835932b97060..8c069f440c2e6ab016ee414c0cbf731105f86d53 100644 (file)
@@ -18,7 +18,7 @@ TUPLE: io-thread < thread ;
     "I/O wait"
     io-thread new-thread ;
 
-M: io-thread error-in-thread die drop throw ;
+M: io-thread error-in-thread die drop rethrow ;
 
 : start-io-thread ( -- )
     t io-thread-running? set-global
index 4a502cb68cb72793ab8334b67bb0adbeb90f5410..30bb6fa025056aa74dc11b8da7d4cbe74eaff5f2 100644 (file)
@@ -13,7 +13,7 @@ IN: ui.debugger
 
 ! ( error -- * )
 [
-    ui-running? [ dup error-alert ] [ dup print-error ] if die
+    ui-running? [ dup error-alert ] [ dup print-error ] if die rethrow
 ] callback-error-hook set-global
 
 M: world-error error.
index dbe645b82886699e5ef52694ef42b1fc0fbad2a2..20ea0fe399a51059976faa2d3df222ad59e68d6d 100644 (file)
@@ -119,7 +119,7 @@ GENERIC: error-in-thread ( error thread -- * )
 
 SYMBOL: thread-error-hook ! ( error thread -- * )
 
-thread-error-hook [ [ die drop throw ] ] initialize
+thread-error-hook [ [ die drop rethrow ] ] initialize
 
 M: object error-in-thread
     thread-error-hook get-global call( error thread -- * ) ;
@@ -128,7 +128,7 @@ M: object error-in-thread
 
 SYMBOL: callback-error-hook ! ( error -- * )
 
-callback-error-hook [ [ die throw ] ] initialize
+callback-error-hook [ [ die rethrow ] ] initialize
 
 : rethrow ( error -- * )
     dup save-error