Index: src/js/collection.js |
diff --git a/src/js/collection.js b/src/js/collection.js |
index 221f0e107831a486599ccb00f7e18dc4e728364b..7c6aa6bc26358899ab4cb70e1943509dacf4458c 100644 |
--- a/src/js/collection.js |
+++ b/src/js/collection.js |
@@ -125,7 +125,7 @@ function GetHash(key) { |
// Harmony Set |
function SetConstructor(iterable) { |
- if (!%_IsConstructCall()) { |
+ if (IS_UNDEFINED(new.target)) { |
throw MakeTypeError(kConstructorNotFunction, "Set"); |
} |
@@ -281,7 +281,7 @@ utils.InstallFunctions(GlobalSet.prototype, DONT_ENUM, [ |
// Harmony Map |
function MapConstructor(iterable) { |
- if (!%_IsConstructCall()) { |
+ if (IS_UNDEFINED(new.target)) { |
throw MakeTypeError(kConstructorNotFunction, "Map"); |
} |