From 8c30a84663ce002d73d2b4c3b4bc44aa89636a3e Mon Sep 17 00:00:00 2001 From: Oguz Bastemur Date: Thu, 8 Feb 2018 03:08:02 -0800 Subject: [PATCH] deps: update ChakraCore to Microsoft/ChakraCore@91ec1ef92c [1.8>1.9] [MERGE #4646 @obastemur] typedarray: new builtin_from test Merge pull request #4646 from obastemur:new_arr_test Moving a test case from release brach. Original test credit goes to @curtisman Reviewed-By: chakrabot --- deps/chakrashim/core/test/typedarray/builtin_from.js | 10 ++++++++++ deps/chakrashim/core/test/typedarray/rlexe.xml | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100644 deps/chakrashim/core/test/typedarray/builtin_from.js diff --git a/deps/chakrashim/core/test/typedarray/builtin_from.js b/deps/chakrashim/core/test/typedarray/builtin_from.js new file mode 100644 index 00000000000..d5894003cf2 --- /dev/null +++ b/deps/chakrashim/core/test/typedarray/builtin_from.js @@ -0,0 +1,10 @@ +//------------------------------------------------------------------------------------------------------- +// Copyright (C) Microsoft. All rights reserved. +// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. +//------------------------------------------------------------------------------------------------------- + +var a = "yy?x¼$w 5?åoê?»'i?ºE-N¼ë6_»\\ d"; +if (Uint8Array.from(a, c=>c.charCodeAt(0)) + "" == "121,121,63,120,253,36,119,32,32,32,32,53,63,253,111,253,63,253,39,105,63,253,69,45,78,253,253,54,95,253,92,32,100") +{ + print("pass"); +} diff --git a/deps/chakrashim/core/test/typedarray/rlexe.xml b/deps/chakrashim/core/test/typedarray/rlexe.xml index a06bc9bb2de..611ea3d786b 100644 --- a/deps/chakrashim/core/test/typedarray/rlexe.xml +++ b/deps/chakrashim/core/test/typedarray/rlexe.xml @@ -382,4 +382,10 @@ Below test fails with difference in space. Investigate the cause and re-enable t CrossSiteVirtual.js + + + builtin_from.js + typedarray + +