[Webkit-unassigned] [Bug 188790] New: Wrong output when case clause is a conditional expression
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 21 05:53:34 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=188790
Bug ID: 188790
Summary: Wrong output when case clause is a conditional
expression
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: sunlili at ict.ac.cn
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
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20180821/753573c7/attachment.html>
More information about the webkit-unassigned
mailing list