In a function, if you want to return an object with specific prototype, or no prototype, you may use Object.create, like:
function fun(){
var obj = Object.create(proto);
obj.a=1;
obj.b=2;
return obj;
}
but I just want to return an anonymous object ,i.e. return {a: 1, b:2 }
but current I cannot set the prototype directly.
maybe we need a new operator, for example, "->" to set the prototype.
so we can do something like this: return {a: 1, b: 2} -> proto