OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. All rights reserved. | 1 // Copyright (c) 2014, the Dart project authors. All rights reserved. |
2 // Copyright 2013 the V8 project authors. All rights reserved. | 2 // Copyright 2013 the V8 project authors. All rights reserved. |
3 // Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 3 // Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
4 // | 4 // |
5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
6 // modification, are permitted provided that the following conditions | 6 // modification, are permitted provided that the following conditions |
7 // are met: | 7 // are met: |
8 // 1. Redistributions of source code must retain the above copyright | 8 // 1. Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // 2. Redistributions in binary form must reproduce the above copyright | 10 // 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 25 matching lines...) Expand all Loading... |
36 shouldBeNull(regexp2.firstMatch('')); | 36 shouldBeNull(regexp2.firstMatch('')); |
37 | 37 |
38 var s3 = | 38 var s3 = |
39 r"&{6}u4a64YfQP{C}u88c4u5772Qu8693{4294967167}u85f2u7f3fs((uf202){4})u5bc6
u1947"; | 39 r"&{6}u4a64YfQP{C}u88c4u5772Qu8693{4294967167}u85f2u7f3fs((uf202){4})u5bc6
u1947"; |
40 var regexp3 = new RegExp(s3); | 40 var regexp3 = new RegExp(s3); |
41 shouldBeNull(regexp3.firstMatch(s3)); | 41 shouldBeNull(regexp3.firstMatch(s3)); |
42 | 42 |
43 var regexp4 = new RegExp(r"[^a$]{4294967295}"); | 43 var regexp4 = new RegExp(r"[^a$]{4294967295}"); |
44 shouldBeNull(regexp4.firstMatch(s3)); | 44 shouldBeNull(regexp4.firstMatch(s3)); |
45 } | 45 } |
OLD | NEW |