File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ var clear = require('es5-ext/array/#/clear')
20
20
module . exports = MapPoly = function ( /*iterable*/ ) {
21
21
var iterable = arguments [ 0 ] , keys , values , self ;
22
22
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 ) ) ;
24
24
else self = this ;
25
25
if ( iterable != null ) iterator ( iterable ) ;
26
26
defineProperties ( self , {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ var clear = require('es5-ext/object/clear')
20
20
module . exports = PrimitiveMap = function ( /*iterable, serialize*/ ) {
21
21
var iterable = arguments [ 0 ] , serialize = arguments [ 1 ] , self ;
22
22
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 ) ) ;
24
24
else self = this ;
25
25
if ( iterable != null ) iterator ( iterable ) ;
26
26
if ( serialize !== undefined ) {
You can’t perform that action at this time.
0 commit comments