this-as behaves incorrectly in "scoping function"

Description

When a this-as expression gets put in a "scoping function", e.g. in a let-binding, the value bound via this-as refers to the scoping function, and not to the outer scope.

Example:

Whereas foo.getBarRight expands to something like

foo.getBarWrong on the other hand expands to

Environment

None

Assignee

David Nolen

Reporter

import

Labels

None

Approval

None

Patch

None

Fix versions

Affects versions

Priority

Major
Configure