Executing following code : --------------------------------------------- (function() { var f = 0; switch (f) { case ((f = 1)? 0 : 0): print("pass"); break; default: print(f); print("fail"); break; }; })(); print("BT_FLAG"); ---------------------------------------------- Output should be : pass BT_FLAG However, output of JavaScriptCore is : 1 fail BT_FLAG BT_GROUP 2018/8/21
(In reply to sunlili from comment #0) > Output should be : > pass > BT_FLAG As of r262695, JSC is correct. Test: https://trac.webkit.org/browser/webkit/trunk/JSTests/ChakraCore/test/Basics/switch.js?rev=262695#L55.
<rdar://problem/64089530>