[Webkit-unassigned] [Bug 188920] New: Switch statement without reached the case block
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 24 09:38:35 PDT 2018
https://bugs.webkit.org/show_bug.cgi?id=188920
Bug ID: 188920
Summary: Switch statement without reached the case block
Product: WebKit
Version: Safari 11
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: isol2 at cin.ufpe.br
Hi everyone,
there is an inconsistency in JSC if a switch statement with only one case block evaluation that could be not reached.
version: 235318
OS: Ubuntu 16.04 x64
steps to reproduce:
{ function f() { return "f 0"; } }
switch (1)
{
case /0.0/gi:
function f() {
return "f 1";
}
break;
default:
break;
}
print( f() );
Actual results:
f 1
Expected results:
f 0
V8 and SpiderMonkey works as expected.
cinfuzz
--
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/20180824/35c90fac/attachment-0001.html>
More information about the webkit-unassigned
mailing list