[Webkit-unassigned] [Bug 212886] New: Redeclaration of a function* inside a block definition

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jun 7 14:58:50 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=212886

            Bug ID: 212886
           Summary: Redeclaration of a function* inside a block definition
           Product: WebKit
           Version: Other
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: junior.jefferson at gmail.com

Hi everyone,
I found a case of redeclaration of a generator function inside a block definition.

version: 262693
OS: Linux Ubuntu 19.10 x64

steps to reproduce:

{ 
    function* f() { yield 1 }
    function f() { print(2) }
}
f()
Actual results:
2

Expected results:
SyntaxError: Identifier 'f' has already been declared

V8, 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/20200607/aa5fbfd2/attachment.htm>


More information about the webkit-unassigned mailing list