amilajack / amilajack/babel-plugin-fail-explicit

Add support for es6 destructuring

Open
#15 0 comments 0 reactions 1 assignee Claimed by @amilajack View on GitHub
enhancement help wanted
Dominant language
JavaScript
Stars
7
Forks
1
PR merge metrics
No merged PRs in 30d

Description

## Example
```js
const some = {}
const { foo } = some
// ^^^ Fails silently
```

## Transformation
```js
const some = {}
const foo = safePropertyAccess(['foo'], some)
// TypeError: Property "foo" does not exist in "Object"
```

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.