emberjs / emberjs/ember.js

Strict mode: helpers inside attribute concats are not auto-invoked

Open
#21,040 4 comments 0 reactions 0 assignees View on GitHub
glimmervm
Dominant language
TypeScript
Stars
22.6k
Forks
4.2k
Avg merge
3d 12h
Merged PRs (30d)
15

Description

```hbs
{{!-- works in standalone hbs --}}


```

```gts
{{!-- does not work in gjs, calls Function.prototype.toString instead --}}
function works() {
return "works";
}



```

Strict mode RFC only intended the change for arguments, not attributes: https://github.com/emberjs/rfcs/blob/508ac9b95bf2a4b397bf72b8e51d981c14c42535/text/0496-handlebars-strict-mode.md#3-no-implicit-invocation-of-argument-less-helpers

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.