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

QScriptEngine expects Identifier where only a IdentifierName is expected

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes