当我创建它需要的 Mapnew
而 Object 不需要它时,怎么会这样?
var o = new Object();
var m = new Map();
var constructorObject = o.constructor;
var constructorMap = m.constructor;
var newObject = constructorObject();
var newMap = constructorMap(); //splat
最后一行产生,
TypeError: Constructor Map requires 'new'
at Map (native)