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

Side by Side Diff: test/cctest/test-api.cc

Issue 13287: Removed a few calls to Top::ReportPendingMessages() that caused the messages ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years 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 | « src/compiler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1792 matching lines...) Expand 10 before | Expand all | Expand 10 after
1803 int expected = args[2]->Int32Value(); 1803 int expected = args[2]->Int32Value();
1804 if (equality) { 1804 if (equality) {
1805 CHECK_EQ(count, expected); 1805 CHECK_EQ(count, expected);
1806 } else { 1806 } else {
1807 CHECK_NE(count, expected); 1807 CHECK_NE(count, expected);
1808 } 1808 }
1809 return v8::Undefined(); 1809 return v8::Undefined();
1810 } 1810 }
1811 1811
1812 1812
1813 THREADED_TEST(EvalInTryFinally) {
1814 v8::HandleScope scope;
1815 LocalContext context;
1816 v8::TryCatch try_catch;
1817 CompileRun("(function() {"
1818 " try {"
1819 " eval('asldkf (*&^&*^');"
1820 " } finally {"
1821 " return;"
1822 " }"
1823 "})()");
1824 CHECK(!try_catch.HasCaught());
1825 }
1826
1827
1813 // This test works by making a stack of alternating JavaScript and C 1828 // This test works by making a stack of alternating JavaScript and C
1814 // activations. These activations set up exception handlers with regular 1829 // activations. These activations set up exception handlers with regular
1815 // intervals, one interval for C activations and another for JavaScript 1830 // intervals, one interval for C activations and another for JavaScript
1816 // activations. When enough activations have been created an exception is 1831 // activations. When enough activations have been created an exception is
1817 // thrown and we check that the right activation catches the exception and that 1832 // thrown and we check that the right activation catches the exception and that
1818 // no other activations do. The right activation is always the topmost one with 1833 // no other activations do. The right activation is always the topmost one with
1819 // a handler, regardless of whether it is in JavaScript or C. 1834 // a handler, regardless of whether it is in JavaScript or C.
1820 // 1835 //
1821 // The notation used to describe a test case looks like this: 1836 // The notation used to describe a test case looks like this:
1822 // 1837 //
(...skipping 3638 matching lines...) Expand 10 before | Expand all | Expand 10 after
5461 CompileRun("for (var j = 0; j < 10; j++) new RegExp('');"); 5476 CompileRun("for (var j = 0; j < 10; j++) new RegExp('');");
5462 } 5477 }
5463 // Test CallIC. 5478 // Test CallIC.
5464 for (int i = 0; i < 2; i++) { 5479 for (int i = 0; i < 2; i++) {
5465 LocalContext context; 5480 LocalContext context;
5466 context->Global()->Set(v8_str("tmp"), v8::True()); 5481 context->Global()->Set(v8_str("tmp"), v8::True());
5467 context->Global()->Delete(v8_str("tmp")); 5482 context->Global()->Delete(v8_str("tmp"));
5468 CompileRun("for (var j = 0; j < 10; j++) RegExp('')"); 5483 CompileRun("for (var j = 0; j < 10; j++) RegExp('')");
5469 } 5484 }
5470 } 5485 }
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698