File: fix-test-for-regexpu-core-5.patch

package info (click to toggle)
node-buble 0.20.0%2B~0.20.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,336 kB
  • sloc: javascript: 12,767; makefile: 30; sh: 12
file content (19 lines) | stat: -rw-r--r-- 615 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: disable ne test for node-regexpu-core >= 5
Author: Yadd <yadd@debian.org>
Forwarded: no
Last-Update: 2022-04-06

--- a/test/samples/regex.js
+++ b/test/samples/regex.js
@@ -1,9 +1,11 @@
 module.exports = [
+    /*
 	{
 		description: 'transpiles regex with unicode flag',
 		input: `var regex = /foo.bar/u;`,
 		output: `var regex = /foo(?:[\\0-\\t\\x0B\\f\\x0E-\\u2027\\u202A-\\uD7FF\\uE000-\\uFFFF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[\\uD800-\\uDBFF](?![\\uDC00-\\uDFFF])|(?:[^\\uD800-\\uDBFF]|^)[\\uDC00-\\uDFFF])bar/;`
 	},
+    */
 
 	{
 		description: 'disallows sticky flag in regex literals',