Commit 92b23673 authored by stonelee's avatar stonelee Committed by Richard Gibson

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

parent e0416f25
...@@ -29,10 +29,10 @@ Data.prototype = { ...@@ -29,10 +29,10 @@ Data.prototype = {
// If not, create one // If not, create one
if ( !unlock ) { if ( !unlock ) {
unlock = Data.uid++; unlock = Data.uid++;
descriptor[ this.expando ] = { value: unlock };
// Secure it in a non-enumerable, non-writable property // Secure it in a non-enumerable, non-writable property
try { try {
descriptor[ this.expando ] = { value: unlock };
Object.defineProperties( owner, descriptor ); Object.defineProperties( owner, descriptor );
// Support: Android<4 // Support: Android<4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment