1c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant// Copyright 2013 the V8 project authors. All rights reserved.
2c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant// Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant//
4c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant// Redistribution and use in source and binary forms, with or without
5b64f8b07c104c6cc986570ac8ee0ed16a9f23976Howard Hinnant// modification, are permitted provided that the following conditions
6b64f8b07c104c6cc986570ac8ee0ed16a9f23976Howard Hinnant// are met:
7c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant// 1.  Redistributions of source code must retain the above copyright
8c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant//     notice, this list of conditions and the following disclaimer.
9c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant// 2.  Redistributions in binary form must reproduce the above copyright
10c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant//     notice, this list of conditions and the following disclaimer in the
11c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant//     documentation and/or other materials provided with the distribution.
12c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant//
13c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant// THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY
14c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant// DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY
17c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
20c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant
24c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnantdescription(
25c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant"This test ensures that String.fromCharCode doesn't crash."
26c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant);
27c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant
28c52f43e72dfcea03037729649da84c23b3beb04aHoward HinnantshouldBe('String.fromCharCode(88)', '"X"');
29c52f43e72dfcea03037729649da84c23b3beb04aHoward Hinnant