Skip to content

[Glimmer] helper no longer receiving env #11080

@rlivsey

Description

@rlivsey

In ember-can we've got a helper which expects to receive env but since Glimmer merged it no longer is.

The is defined as so:

export default function(properties, hash, options, env) {
  var abilityName  = properties[0];
  var resource     = properties[1];
  var view         = env.data.view;
  var container    = view.container;

and is then exported as a plain function:

import canHelper from 'ember-can/helpers/can';
export default canHelper;

This may well be an issue in the addon and shouldn't have received env previously, but before I fix it in the addon itself I thought it worth checking if this is a regression or if there's a different way we should be doing this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions