Index: src/js/collection.js |
diff --git a/src/js/collection.js b/src/js/collection.js |
index 7c6aa6bc26358899ab4cb70e1943509dacf4458c..2b3f1aad71cfa8f055392929501fc0aaea9499c4 100644 |
--- a/src/js/collection.js |
+++ b/src/js/collection.js |
@@ -134,7 +134,7 @@ function SetConstructor(iterable) { |
if (!IS_NULL_OR_UNDEFINED(iterable)) { |
var adder = this.add; |
if (!IS_CALLABLE(adder)) { |
- throw MakeTypeError(kPropertyNotFunction, 'add', this); |
+ throw MakeTypeError(kPropertyNotFunction, adder, 'add', this); |
} |
for (var value of iterable) { |
@@ -290,7 +290,7 @@ function MapConstructor(iterable) { |
if (!IS_NULL_OR_UNDEFINED(iterable)) { |
var adder = this.set; |
if (!IS_CALLABLE(adder)) { |
- throw MakeTypeError(kPropertyNotFunction, 'set', this); |
+ throw MakeTypeError(kPropertyNotFunction, adder, 'set', this); |
} |
for (var nextItem of iterable) { |