aboutsummaryrefslogtreecommitdiff
path: root/integration/snippets/string-escapes.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-11-01 04:04:48 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2021-11-01 04:04:48 -0700
commit36ec8bb99bb0ed42088e6d50111e92ed39ca5e24 (patch)
tree53d7591c972a00a05f40753dc1230a47244ac223 /integration/snippets/string-escapes.js
parentbc5f99dc43c4f61546f15ed27485a8c6ec7472bd (diff)
downloadbun-36ec8bb99bb0ed42088e6d50111e92ed39ca5e24.tar.gz
bun-36ec8bb99bb0ed42088e6d50111e92ed39ca5e24.tar.zst
bun-36ec8bb99bb0ed42088e6d50111e92ed39ca5e24.zip
[test] Add integration test for null byte \\0
Diffstat (limited to 'integration/snippets/string-escapes.js')
-rw-r--r--integration/snippets/string-escapes.js25
1 files changed, 14 insertions, 11 deletions
diff --git a/integration/snippets/string-escapes.js b/integration/snippets/string-escapes.js
index 8d4eef725..0cb692211 100644
--- a/integration/snippets/string-escapes.js
+++ b/integration/snippets/string-escapes.js
@@ -12,6 +12,7 @@ var obj = {
"\v": "\v",
"\u2028": "\u2028",
"\u2029": "\u2029",
+ "\0": "\0 null byte",
"😊": "😊",
"😃": "😃",
"🕵🏽‍♂️": "🕵🏽‍♂️",
@@ -33,17 +34,19 @@ const correctEncodedObj = [
34, 58, 34, 92, 110, 34, 44, 34, 92, 116, 34, 58, 34, 92, 116, 34, 44, 34, 92,
102, 34, 58, 34, 92, 102, 34, 44, 34, 92, 117, 48, 48, 48, 98, 34, 58, 34, 92,
117, 48, 48, 48, 98, 34, 44, 34, 226, 128, 168, 34, 58, 34, 226, 128, 168, 34,
- 44, 34, 226, 128, 169, 34, 58, 34, 226, 128, 169, 34, 44, 34, 240, 159, 152,
- 138, 34, 58, 34, 240, 159, 152, 138, 34, 44, 34, 240, 159, 152, 131, 34, 58,
- 34, 240, 159, 152, 131, 34, 44, 34, 240, 159, 149, 181, 240, 159, 143, 189,
- 226, 128, 141, 226, 153, 130, 239, 184, 143, 34, 58, 34, 240, 159, 149, 181,
- 240, 159, 143, 189, 226, 128, 141, 226, 153, 130, 239, 184, 143, 34, 44, 34,
- 227, 139, 161, 34, 58, 34, 227, 139, 161, 34, 44, 34, 226, 152, 186, 34, 58,
- 34, 226, 152, 186, 34, 44, 34, 227, 130, 183, 34, 58, 34, 227, 130, 183, 34,
- 44, 34, 240, 159, 145, 139, 34, 58, 34, 240, 159, 145, 139, 34, 44, 34, 102,
- 34, 58, 34, 226, 130, 135, 34, 44, 34, 226, 152, 185, 34, 58, 34, 226, 152,
- 185, 34, 44, 34, 226, 152, 187, 34, 58, 34, 226, 152, 187, 34, 44, 34, 99,
- 104, 105, 108, 100, 114, 101, 110, 34, 58, 49, 50, 51, 125,
+ 44, 34, 226, 128, 169, 34, 58, 34, 226, 128, 169, 34, 44, 34, 92, 117, 48, 48,
+ 48, 48, 34, 58, 34, 92, 117, 48, 48, 48, 48, 194, 160, 110, 117, 108, 108, 32,
+ 98, 121, 116, 101, 34, 44, 34, 240, 159, 152, 138, 34, 58, 34, 240, 159, 152,
+ 138, 34, 44, 34, 240, 159, 152, 131, 34, 58, 34, 240, 159, 152, 131, 34, 44,
+ 34, 240, 159, 149, 181, 240, 159, 143, 189, 226, 128, 141, 226, 153, 130, 239,
+ 184, 143, 34, 58, 34, 240, 159, 149, 181, 240, 159, 143, 189, 226, 128, 141,
+ 226, 153, 130, 239, 184, 143, 34, 44, 34, 227, 139, 161, 34, 58, 34, 227, 139,
+ 161, 34, 44, 34, 226, 152, 186, 34, 58, 34, 226, 152, 186, 34, 44, 34, 227,
+ 130, 183, 34, 58, 34, 227, 130, 183, 34, 44, 34, 240, 159, 145, 139, 34, 58,
+ 34, 240, 159, 145, 139, 34, 44, 34, 102, 34, 58, 34, 226, 130, 135, 34, 44,
+ 34, 226, 152, 185, 34, 58, 34, 226, 152, 185, 34, 44, 34, 226, 152, 187, 34,
+ 58, 34, 226, 152, 187, 34, 44, 34, 99, 104, 105, 108, 100, 114, 101, 110, 34,
+ 58, 49, 50, 51, 125,
];
const jsxVariants = (