Le 29/11/2012 16:47, Nathan Wall a écrit :
In addition, it'd be nice if there was an easier way to create an object with no [[Prototype]]... some sort of addition to object literal notation?
I think ES6 will have such a notation with the __proto__ de facto standardization:

    var o = {
        __proto__: null,
        a: 1,
        b: 2
    };

It's not mentionned in the strawman, but I think I've read it once on es-discuss.

David
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to