Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

Commit

Permalink
feat: support class name
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Mar 7, 2018
1 parent 9a6b3be commit 5ff4aaf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/evaluate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,9 @@ const evaluate_map = {
return __this;
}

// define class name
Object.defineProperty(Class, "name", {value: node.id.name});

const _methods = methods
.map((method: types.ClassMethod) => {
const newScope = scope.$child("function");
Expand Down

0 comments on commit 5ff4aaf

Please sign in to comment.