| Index: src/js/weak-collection.js
|
| diff --git a/src/js/weak-collection.js b/src/js/weak-collection.js
|
| index c4568f97f4f38e7f18893511b7f37c0bb1355d77..0be714109e63b5a4500c53bf5ddfc8cf6be4f113 100644
|
| --- a/src/js/weak-collection.js
|
| +++ b/src/js/weak-collection.js
|
| @@ -29,7 +29,7 @@ utils.Import(function(from) {
|
| // Harmony WeakMap
|
|
|
| function WeakMapConstructor(iterable) {
|
| - if (!%_IsConstructCall()) {
|
| + if (IS_UNDEFINED(new.target)) {
|
| throw MakeTypeError(kConstructorNotFunction, "WeakMap");
|
| }
|
|
|
| @@ -118,7 +118,7 @@ utils.InstallFunctions(GlobalWeakMap.prototype, DONT_ENUM, [
|
| // Harmony WeakSet
|
|
|
| function WeakSetConstructor(iterable) {
|
| - if (!%_IsConstructCall()) {
|
| + if (IS_UNDEFINED(new.target)) {
|
| throw MakeTypeError(kConstructorNotFunction, "WeakSet");
|
| }
|
|
|
|
|