[Webkit-unassigned] [Bug 22663] New: Property names not allowed in objects if they form part of js syntax

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 4 16:06:24 PST 2008


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

           Summary: Property names not allowed in objects if they form part
                    of js syntax
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: david at lmframework.com


I had a look around and couldn't find any references to this...

basically this is the problem:

var o    = new Obj();
o.if     = 'will make parser fall over';
o.then   = 'will make parser fall over';
o.and    = 'will make parser fall over';
o.switch = 'will make parser fall over';

o.unreserved_word = 'thats ok'

I don't know what the ECMA spec says, but I've got 50,000 lines of code in FF
running fine with reserved words as property names.

Tks 

D.


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



More information about the webkit-unassigned mailing list