File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ var tests = [
9
9
'position' : - 1 ,
10
10
'result' : undefined
11
11
} ,
12
+ {
13
+ 'string' : 'abc\uD834\uDF06def' ,
14
+ 'position' : - 0 ,
15
+ 'result' : 0x61
16
+ } ,
12
17
{
13
18
'string' : 'abc\uD834\uDF06def' ,
14
19
'position' : 0 ,
@@ -80,6 +85,11 @@ var tests = [
80
85
'position' : - 1 ,
81
86
'result' : undefined
82
87
} ,
88
+ {
89
+ 'string' : '\uD834\uDF06def' ,
90
+ 'position' : - 0 ,
91
+ 'result' : 0x1D306
92
+ } ,
83
93
{
84
94
'string' : '\uD834\uDF06def' ,
85
95
'position' : 0 ,
@@ -131,6 +141,11 @@ var tests = [
131
141
'position' : - 1 ,
132
142
'result' : undefined
133
143
} ,
144
+ {
145
+ 'string' : '\uD834abc' ,
146
+ 'position' : - 0 ,
147
+ 'result' : 0xD834
148
+ } ,
134
149
{
135
150
'string' : '\uD834abc' ,
136
151
'position' : 0 ,
@@ -172,6 +187,11 @@ var tests = [
172
187
'position' : - 1 ,
173
188
'result' : undefined
174
189
} ,
190
+ {
191
+ 'string' : '\uDF06abc' ,
192
+ 'position' : - 0 ,
193
+ 'result' : 0xDF06
194
+ } ,
175
195
{
176
196
'string' : '\uDF06abc' ,
177
197
'position' : 0 ,
You can’t perform that action at this time.
0 commit comments