Fix regression test by wrapping expression in a thunk^H^H^H^H^Hstring.
authorkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 22 Apr 2009 17:44:28 +0000 (17:44 +0000)
committerkmillikin@chromium.org <kmillikin@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 22 Apr 2009 17:44:28 +0000 (17:44 +0000)
Review URL: http://codereview.chromium.org/95001

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1776 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

test/mjsunit/regress/regress-318.js

index 9e00b5f..e94f1cb 100644 (file)
 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-// Should not raise an exception.
+// Should not crash or raise an exception.
 
 function test(value) {
   if (typeof(value) == 'boolean') value = value + '';
   if (typeof(value) == 'number') value = value + '';
 }
 
-assertDoesNotThrow(test(0));
+assertDoesNotThrow('test(0)');