Skip to content

Commit e7f504a

Browse files
committed
Fix extension
1 parent 173e87e commit e7f504a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

polyfill.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var clear = require('es5-ext/array/#/clear')
2020
module.exports = MapPoly = function (/*iterable*/) {
2121
var iterable = arguments[0], keys, values, self;
2222
if (!(this instanceof MapPoly)) throw new TypeError('Constructor requires \'new\'');
23-
if (isNative && setPrototypeOf) self = setPrototypeOf(new Set(), getPrototypeOf(this));
23+
if (isNative && setPrototypeOf) self = setPrototypeOf(new Map(), getPrototypeOf(this));
2424
else self = this;
2525
if (iterable != null) iterator(iterable);
2626
defineProperties(self, {

primitive/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var clear = require('es5-ext/object/clear')
2020
module.exports = PrimitiveMap = function (/*iterable, serialize*/) {
2121
var iterable = arguments[0], serialize = arguments[1], self;
2222
if (!(this instanceof PrimitiveMap)) throw new TypeError('Constructor requires \'new\'');
23-
if (isNative && setPrototypeOf) self = setPrototypeOf(new Set(), getPrototypeOf(this));
23+
if (isNative && setPrototypeOf) self = setPrototypeOf(new Map(), getPrototypeOf(this));
2424
else self = this;
2525
if (iterable != null) iterator(iterable);
2626
if (serialize !== undefined) {

0 commit comments

Comments
 (0)