ember-cli / ember-cli/babel-plugin-debug-macros

Handle `CallExpression` for debug macros.

Open
#46 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
13
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Currently, we are handling only `ExpressionStatement`'s for debug macro replacement. Unfortunately, the following do not get processed (since they do not include an `ExpressionStatement`):

```js
function foo() {
return assert(false, 'derp'); // ReturnStatement
}

let qux = () => assert(false, 'herp'); // ArrowFunctionExpression
```

This is the underlying issue in https://github.com/babel/ember-cli-babel/issues/168.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.