benchmarks/scenarios/ember.js
function (obj, meta) {
    // if `null` already, just set it to the new value
    // otherwise define property first
    if (obj[META_FIELD] !== null) {
      if (obj.__defineNonEnumerable) {
        obj.__defineNonEnumerable(EMBER_META_PROPERTY);
      } else {
        Object.defineProperty(obj, META_FIELD, META_DESC);
      }
    }

    obj[META_FIELD] = meta;
  }
function (obj, meta) {
    // if `null` already, just set it to the new value
    // otherwise define property first
    if (obj[META_FIELD] !== null) {
      if (obj.__defineNonEnumerable) {
        obj.__defineNonEnumerable(EMBER_META_PROPERTY);
      } else {
        Object.defineProperty(obj, META_FIELD, META_DESC);
      }
    }

    obj[META_FIELD] = meta;
  }
function ( obj , meta ) { // if `null` already, just set it to the new value // otherwise define property first if ( obj [ META_FIELD ] !== null ) { if ( obj . __defineNonEnumerable ) { obj . __defineNonEnumerable ( EMBER_META_PROPERTY ) ; } else { Object . defineProperty ( obj , META_FIELD , META_DESC ) ; } } obj [ META_FIELD ] = meta ; }
choose the one appropriate for given platform
choose the one appropriate for given platform