[Webkit-unassigned] [Bug 64875] New: Use of `yield` keyword is broken

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 20 08:46:53 PDT 2011


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

           Summary: Use of `yield` keyword is broken
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Major
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: lekensteyn at gmail.com


Created an attachment (id=101475)
 --> (https://bugs.webkit.org/attachment.cgi?id=101475&action=review)
Testcases which should all be OK, not FAIL

The use of `yield` as variable name is impossible, even when not in strict mode. This was confirmed in build 91186 (http://builds.nightly.webkit.org/files/trunk/src/WebKit-r91186.tar.bz2)

Although the keyword cannot be used, it does neither work. The example from https://developer.mozilla.org/en/New_in_JavaScript_1.7#Generators gives a parse error:

    SyntaxError: Expected an identifier but found 'i' instead

The attached testcase provides some example code that demonstrates that yield cannot be used in some cases.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list