Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-36882

QScriptEngine expects Identifier where only a IdentifierName is expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P4: Low
    • Some future release
    • 4.8.5
    • Qt Script
    • None

    Description

      ECMA 5 defines that attribute access, method calls, and object keys may be IdentifierNames, i.e. variable names including reserved words like class, if, else, and var.

      but things like {{QScriptEngine.evaluate("

      {class: 'baz'}

      ")}} or QScriptEngine.evaluate("{this.class") only yield illegitimate parse errors.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            laknoll Lars Knoll
            flying sheep Phil Schaf
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes