<commit_before>--- closure-orig/src/com/google/javascript/jscomp/UnreachableCodeElimination.java	2013-08-19 15:26:58.320335366 -0500
+++ closure/src/com/google/javascript/jscomp/UnreachableCodeElimination.java	2013-08-30 01:45:24.186675747 -0500
@@ -209,6 +209,21 @@
         return;
       }
 
+      // JAM begin
+      // %%% This is not efficient.
+      // %%% Really need to update the unreachable code logic to mark
+      // %%% transaction handler expressions as reachable.
+      Node p = n; 
+      while (p != null) {
+        // %%% And it's part of the handler expression. It should be
+        // %%% fine to remove unreachable statements within the block.
+        if (p.getType() == Token.TRANSACTION) {
+          return;
+        }
+        p = p.getParent();
+      }
+      // JAM end
+
       switch (n.getType()) {
         // Removing an unreachable DO node is messy b/c it means we still have
         // to execute one iteration. If the DO's body has breaks in the middle,
<commit_msg>This was probably needed a while ago<commit_after>--- closure-orig/src/com/google/javascript/jscomp/UnreachableCodeElimination.java	2013-08-19 15:26:58.320335366 -0500
+++ closure/src/com/google/javascript/jscomp/UnreachableCodeElimination.java	2013-08-30 01:45:24.186675747 -0500
@@ -209,6 +209,21 @@
         return;
       }
 
+      // JAM begin
+      // %%% This is not efficient.
+      // %%% Really need to update the unreachable code logic to mark
+      // %%% transaction introspector expressions as reachable.
+      Node p = n; 
+      while (p != null) {
+        // %%% And it's part of the handler expression. It should be
+        // %%% fine to remove unreachable statements within the block.
+        if (p.getType() == Token.TRANSACTION) {
+          return;
+        }
+        p = p.getParent();
+      }
+      // JAM end
+
       switch (n.getType()) {
         // Removing an unreachable DO node is messy b/c it means we still have
         // to execute one iteration. If the DO's body has breaks in the middle,

{'fraction_non_alphanumeric': 0.12975609756097561, 'fraction_numerical': 0.06146341463414634, 'mean_word_length': 2.1897356143079314, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2019609', 'n_tokens_mistral': 728, 'n_tokens_neox': 644, 'n_words': 192}