| Index: test/intl/general/supported-locales-of.js
|
| diff --git a/src/a64/frames-a64.cc b/test/intl/general/supported-locales-of.js
|
| similarity index 75%
|
| copy from src/a64/frames-a64.cc
|
| copy to test/intl/general/supported-locales-of.js
|
| index fc0ecb499594f06731abe87b29ab6df7f7f82ca0..016b4e9e5dddae6320fb01be7a77aa38a72c0edc 100644
|
| --- a/src/a64/frames-a64.cc
|
| +++ b/test/intl/general/supported-locales-of.js
|
| @@ -25,27 +25,19 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -#include "v8.h"
|
| +// Tests supportedLocalesOf method.
|
|
|
| -#if V8_TARGET_ARCH_A64
|
| +var undef = Intl.DateTimeFormat.supportedLocalesOf();
|
| +assertEquals(undefined, undef[0]);
|
|
|
| -#include "assembler.h"
|
| -#include "assembler-a64.h"
|
| -#include "assembler-a64-inl.h"
|
| -#include "frames.h"
|
| +var empty = Intl.DateTimeFormat.supportedLocalesOf([]);
|
| +assertEquals(undefined, empty[0]);
|
|
|
| -namespace v8 {
|
| -namespace internal {
|
| +var strLocale = Intl.DateTimeFormat.supportedLocalesOf('sr');
|
| +assertEquals('sr', strLocale[0]);
|
|
|
| -
|
| -Register JavaScriptFrame::fp_register() { return v8::internal::fp; }
|
| -Register JavaScriptFrame::context_register() { return cp; }
|
| -
|
| -
|
| -Register StubFailureTrampolineFrame::fp_register() { return v8::internal::fp; }
|
| -Register StubFailureTrampolineFrame::context_register() { return cp; }
|
| -
|
| -
|
| -} } // namespace v8::internal
|
| -
|
| -#endif // V8_TARGET_ARCH_A64
|
| +var multiLocale =
|
| + Intl.DateTimeFormat.supportedLocalesOf(['sr-Thai-RS', 'de', 'zh-CN']);
|
| +assertEquals('sr-Thai-RS', multiLocale[0]);
|
| +assertEquals('de', multiLocale[1]);
|
| +assertEquals('zh-CN', multiLocale[2]);
|
|
|