File tree Expand file tree Collapse file tree 4 files changed +59
-1
lines changed Expand file tree Collapse file tree 4 files changed +59
-1
lines changed Original file line number Diff line number Diff line change @@ -2052,7 +2052,7 @@ ecma_string_get_utf8_length (const ecma_string_t *string_p) /**< ecma-string */
2052
2052
return (ecma_length_t ) (long_string_p -> long_utf8_string_length );
2053
2053
}
2054
2054
2055
- return lit_get_utf8_length_of_cesu8_string ((const lit_utf8_byte_t * ) (string_p + 1 ),
2055
+ return lit_get_utf8_length_of_cesu8_string ((const lit_utf8_byte_t * ) (long_string_p + 1 ),
2056
2056
(lit_utf8_size_t ) string_p -> u .long_utf8_string_size );
2057
2057
}
2058
2058
default :
Original file line number Diff line number Diff line change
1
+ // Copyright JS Foundation and other contributors, http://js.foundation
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ var src = "var a = 0; while(a) { switch(a) {" ;
16
+ for ( var i = 0 ; i < 4000 ; i ++ )
17
+ src += "-Infinity" + i + "\u00a0\u00a01.2e3" ;
18
+ src += "\udc00%f0%90%80%80\udc00" ;
19
+ print ( src ) ;
Original file line number Diff line number Diff line change
1
+ // Copyright JS Foundation and other contributors, http://js.foundation
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ var src = "" ;
16
+ for ( var i = 0 ; i < 4000 ; i ++ )
17
+ src += "\udc00%f0%90%80%80\udc00" ;
18
+ src += "} }" ;
19
+ print ( src ) ;
Original file line number Diff line number Diff line change
1
+ // Copyright JS Foundation and other contributors, http://js.foundation
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ var src = "" ;
16
+ for ( var i = 0 ; i < 4000 ; i ++ )
17
+ src += 4 + i + ": a += a += a; break; " ;
18
+ src += "\\
19
+ \
" ;
20
+ print ( src ) ;
You can’t perform that action at this time.
0 commit comments