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 + +