Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 611 Bytes

File metadata and controls

34 lines (23 loc) · 611 Bytes

Repilot Patch


        case '\0': sb.append("\\0"); break;

Developer Patch

        case '\0': sb.append("\\0"); break;

Context

--- bug/Closure-77/src/com/google/javascript/jscomp/CodeGenerator.java

+++ fix/Closure-77/src/com/google/javascript/jscomp/CodeGenerator.java

@@ -963,6 +963,8 @@

     for (int i = 0; i < s.length(); i++) {
       char c = s.charAt(i);
       switch (c) {
+
+        case '\0': sb.append("\\0"); break;
         case '\n': sb.append("\\n"); break;
         case '\r': sb.append("\\r"); break;
         case '\t': sb.append("\\t"); break;

Note