Skip to content

Commit e049a86

Browse files
committed
Fixed bug with map and set constructors
1 parent 5d4af44 commit e049a86

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lualib/Map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class Map<TKey, TValue> {
33

44
private items: {[key: string]: TValue}; // Type of key is actually TKey
55

6-
public Map(other: any) {
6+
constructor(other: any) {
77
this.items = {};
88
this.size = 0;
99

src/lualib/Set.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class Set<TValue> {
33

44
private items: {[key: string]: boolean}; // Key type is actually TValue
55

6-
public Set(other: any) {
6+
constructor(other: any) {
77
this.items = {};
88
this.size = 0;
99

0 commit comments

Comments
 (0)