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

Unified Diff: test/mjsunit/regress/regress-crbug-157520.js

Issue 11300008: Fix ugly typo in GenerateNewNonStrictFast. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-crbug-157520.js
diff --git a/test/mjsunit/regress/regress-148378.js b/test/mjsunit/regress/regress-crbug-157520.js
similarity index 90%
copy from test/mjsunit/regress/regress-148378.js
copy to test/mjsunit/regress/regress-crbug-157520.js
index d37cea1cf75b02888ec59231c65b5b6ac436d45c..ee81c444727dd8ec4e8fa65a5fd169d03fd7183f 100644
--- a/test/mjsunit/regress/regress-148378.js
+++ b/test/mjsunit/regress/regress-crbug-157520.js
@@ -25,14 +25,14 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-"a".replace(/a/g, function() { return "c"; });
+// Flags: --nocrankshaft
-function test() {
- try {
- test();
- } catch(e) {
- "b".replace(/(b)/g, function() { return "c"; });
+(function(){
+ var f = function(arg) {
+ arg = 2;
+ return arguments[0];
+ };
+ for (var i = 0; i < 50000; i++) {
+ assertSame(2, f(1));
}
-}
-
-test();
+})();
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698