Fix regression test by wrapping expression in a thunk^H^H^H^H^Hstring.
Review URL: http://codereview.chromium.org/95001 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1776 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
4f834546c7
commit
cb9d66638b
@ -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)');
|
||||
|
Loading…
Reference in New Issue
Block a user