No ticket: Move property descriptor assignment to save a byte. Close gh-1188.

This commit is contained in:
stonelee 2013-03-01 12:33:37 +08:00 committed by Richard Gibson
parent e0416f2548
commit 92b23673e6

View File

@ -29,10 +29,10 @@ Data.prototype = {
// If not, create one
if ( !unlock ) {
unlock = Data.uid++;
descriptor[ this.expando ] = { value: unlock };
// Secure it in a non-enumerable, non-writable property
try {
descriptor[ this.expando ] = { value: unlock };
Object.defineProperties( owner, descriptor );
// Support: Android<4