Sha256: 2ebb77365189e18d461f96f66c886bbabd0518cd7d0e895e3eb7bddafd8b882d

Contents?: true

Size: 1.37 KB

Versions: 31

Compression:

Stored size: 1.37 KB

Contents

/* */ 
var global = require('./$.global'),
    core = require('./$.core'),
    PROTOTYPE = 'prototype';
var ctx = function(fn, that) {
  return function() {
    return fn.apply(that, arguments);
  };
};
var $def = function(type, name, source) {
  var key,
      own,
      out,
      exp,
      isGlobal = type & $def.G,
      isProto = type & $def.P,
      target = isGlobal ? global : type & $def.S ? global[name] : (global[name] || {})[PROTOTYPE],
      exports = isGlobal ? core : core[name] || (core[name] = {});
  if (isGlobal)
    source = name;
  for (key in source) {
    own = !(type & $def.F) && target && key in target;
    if (own && key in exports)
      continue;
    out = own ? target[key] : source[key];
    if (isGlobal && typeof target[key] != 'function')
      exp = source[key];
    else if (type & $def.B && own)
      exp = ctx(out, global);
    else if (type & $def.W && target[key] == out)
      !function(C) {
        exp = function(param) {
          return this instanceof C ? new C(param) : C(param);
        };
        exp[PROTOTYPE] = C[PROTOTYPE];
      }(out);
    else
      exp = isProto && typeof out == 'function' ? ctx(Function.call, out) : out;
    exports[key] = exp;
    if (isProto)
      (exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;
  }
};
$def.F = 1;
$def.G = 2;
$def.S = 4;
$def.P = 8;
$def.B = 16;
$def.W = 32;
module.exports = $def;

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
sequenceserver-3.1.3 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-3.1.2 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-3.1.1 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-3.1.0 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-3.0.1 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-3.0 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-2.2.0 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-2.1.0 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-2.0.0 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-2.0.0.rc8 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-2.0.0.rc7 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-2.0.0.rc6 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-2.0.0.rc5 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-2.0.0.rc4 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-2.0.0.rc3 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-2.0.0.rc2 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-2.0.0.rc1 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-2.0.0.beta4 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-2.0.0.beta3 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js
sequenceserver-2.0.0.beta1 public/vendor/npm/core-js@1.1.2/library/modules/$.def.js