Skip to content
This repository has been archived by the owner on Feb 1, 2025. It is now read-only.

Add ArrowFunctionExpression to opaqueTypes #277

Merged
merged 1 commit into from
Feb 13, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/regenerator-transform/src/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ function makePredicate(propertyName, knownTypes) {
}

let opaqueTypes = {
FunctionExpression: true
FunctionExpression: true,
ArrowFunctionExpression: true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes a ton of sense!

};

// These types potentially have side effects regardless of what side
Expand Down