Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Side by Side Diff: test/mjsunit/regress/regress-AddElement.js

Issue 42216: Add copyright notice to new test case. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | test/mjsunit/string-replace-gc.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Flags: --always-compact
2 //
3 // Regression test for the r1512 fix.
4
5 var foo = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa";
6
7 foo = foo + foo;
8 foo = foo + foo;
9 foo = foo + foo;
10 foo = foo + foo;
11 foo = foo + foo;
12 foo = foo + foo;
13 foo = foo + foo;
14 foo = foo + foo;
15 foo = foo + foo;
16 foo = foo + foo;
17 foo = foo + foo;
18 foo = foo + foo;
19 foo = foo + foo;
20 foo = foo + foo;
21 foo = foo + foo;
22
23 foo.replace(/[b]/, "c"); // Flatten foo;
24
25 var moving_string = "b" + "c";
26
27 var bar = foo.replace(/[a]/g, moving_string);
28
29 print(bar.length);
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/string-replace-gc.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698