| Index: test/webkit/fast/regex/alternative-length-miscalculation.js
|
| diff --git a/test/webkit/const-without-initializer.js b/test/webkit/fast/regex/alternative-length-miscalculation.js
|
| similarity index 87%
|
| copy from test/webkit/const-without-initializer.js
|
| copy to test/webkit/fast/regex/alternative-length-miscalculation.js
|
| index 9eb036522a05920b2c1441b387002f91811d1752..7602d5adec08aeabf08066c0420e6e52b497a3f8 100644
|
| --- a/test/webkit/const-without-initializer.js
|
| +++ b/test/webkit/fast/regex/alternative-length-miscalculation.js
|
| @@ -22,13 +22,12 @@
|
| // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| description(
|
| -'Tests that declaring a const variable without initializing has the correct behavior and does not crash'
|
| +"This page tests for length miscalculations in regular expression processing."
|
| );
|
|
|
| -const f;
|
| +var re = /b|[^b]/g;
|
| +re.lastIndex = 1;
|
| +shouldBe("re.exec('a')", "null");
|
|
|
| -shouldBe('f', 'undefined');
|
| -
|
| -f = 10;
|
| -
|
| -shouldBe('f', 'undefined');
|
| +var re2 = /[^a]|ab/;
|
| +shouldBe("re2.test('')", "false");
|
|
|