Commit 3d9bf714 authored by mrbkap%gmail.com's avatar mrbkap%gmail.com
Browse files

Allow reserved keywords to be used as property identifiers after attribute...

Allow reserved keywords to be used as property identifiers after attribute selectors. bug 345922, r=brendan a=beltzner
parent a2f1db0e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -4136,7 +4136,9 @@ AttributeIdentifier(JSContext *cx, JSTokenStream *ts, JSTreeContext *tc)
    if (!pn)
        return NULL;
    pn->pn_op = JSOP_TOATTRNAME;
    ts->flags |= TSF_KEYWORD_IS_NAME;
    tt = js_GetToken(cx, ts);
    ts->flags &= ~TSF_KEYWORD_IS_NAME;
    if (tt == TOK_STAR || tt == TOK_NAME) {
        pn2 = QualifiedIdentifier(cx, ts, tc);
    } else if (tt == TOK_LB) {