File: fix-test-source-map-js.patch

package info (click to toggle)
node-concat-with-sourcemaps 1.0.7-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 148 kB
  • sloc: javascript: 447; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 694 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Description: Fix test for source-map-js compatibility
 source-map-js handles invalid mappings slightly differently,
 dropping incomplete VLQ segments rather than preserving them.
Forwarded: not-needed
--- a/test/index.js
+++ b/test/index.js
@@ -262,7 +262,7 @@
   ],
   output: {
     content: 'AAA\nBBB\nCCC\nEEE\nFFF',
-    sourceMap: '{"version":3,"file":"out.js","sources":["test12","test13","test2","test3"],"names":[],"mappings":"A;AAAA;ACAA;ACAA;ACAA","sourcesContent":["BBB","CCC",null,null]}'
+    sourceMap: '{"version":3,"file":"out.js","sources":["test12","test13","test2","test3"],"names":[],"mappings":";AAAA;ACAA;ACAA;ACAA","sourcesContent":["BBB","CCC",null,null]}'
   }
 });