Reviewers: Dean McNamee,

Description:
Fix regression test by wrapping expression in a thunk^H^H^H^H^Hstring.


Please review this at http://codereview.chromium.org/95001

SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/

Affected files:
   M     test/mjsunit/regress/regress-318.js


Index: test/mjsunit/regress/regress-318.js
===================================================================
--- test/mjsunit/regress/regress-318.js (revision 1767)
+++ test/mjsunit/regress/regress-318.js (working copy)
@@ -25,11 +25,11 @@
  // (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)');



--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to