Sha256: e91569feb1c0452beb4a09b65eef111cd7a17522a588dfa8323181ab11e8c9c1

Contents?: true

Size: 1.56 KB

Versions: 32

Compression:

Stored size: 1.56 KB

Contents

var global = require('./_global');
var core = require('./_core');
var hide = require('./_hide');
var redefine = require('./_redefine');
var ctx = require('./_ctx');
var PROTOTYPE = 'prototype';

var $export = function (type, name, source) {
  var IS_FORCED = type & $export.F;
  var IS_GLOBAL = type & $export.G;
  var IS_STATIC = type & $export.S;
  var IS_PROTO = type & $export.P;
  var IS_BIND = type & $export.B;
  var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
  var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
  var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
  var key, own, out, exp;
  if (IS_GLOBAL) source = name;
  for (key in source) {
    // contains in native
    own = !IS_FORCED && target && target[key] !== undefined;
    // export native or passed
    out = (own ? target : source)[key];
    // bind timers to global for call from export context
    exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
    // extend global
    if (target) redefine(target, key, out, type & $export.U);
    // export
    if (exports[key] != out) hide(exports, key, exp);
    if (IS_PROTO && expProto[key] != out) expProto[key] = out;
  }
};
global.core = core;
// type bitmap
$export.F = 1;   // forced
$export.G = 2;   // global
$export.S = 4;   // static
$export.P = 8;   // proto
$export.B = 16;  // bind
$export.W = 32;  // wrap
$export.U = 64;  // safe
$export.R = 128; // real proto method for `library`
module.exports = $export;

Version data entries

32 entries across 29 versions & 8 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/core-js/modules/_export.js
immosquare-cleaner-0.1.50 node_modules/core-js/modules/_export.js
immosquare-cleaner-0.1.49 node_modules/core-js/modules/_export.js
immosquare-cleaner-0.1.48 node_modules/core-js/modules/_export.js
immosquare-cleaner-0.1.47 node_modules/core-js/modules/_export.js
immosquare-cleaner-0.1.46 node_modules/core-js/modules/_export.js
immosquare-cleaner-0.1.45 node_modules/core-js/modules/_export.js
immosquare-cleaner-0.1.44 node_modules/core-js/modules/_export.js
immosquare-cleaner-0.1.43 node_modules/core-js/modules/_export.js
immosquare-cleaner-0.1.42 node_modules/core-js/modules/_export.js
immosquare-cleaner-0.1.41 node_modules/core-js/modules/_export.js
immosquare-cleaner-0.1.40 node_modules/core-js/modules/_export.js
optimacms-0.1.61 spec/dummy/node_modules/babel-runtime/node_modules/core-js/modules/_export.js
ilog-0.4.1 node_modules/babel-runtime/node_modules/core-js/modules/_export.js
ilog-0.4.1 node_modules/babel-register/node_modules/core-js/modules/_export.js
ilog-0.4.0 node_modules/babel-register/node_modules/core-js/modules/_export.js
ilog-0.4.0 node_modules/babel-runtime/node_modules/core-js/modules/_export.js
ilog-0.3.3 node_modules/babel-runtime/node_modules/core-js/modules/_export.js
ilog-0.3.3 node_modules/babel-register/node_modules/core-js/modules/_export.js
condenser-0.0.5 lib/condenser/processors/node_modules/core-js/modules/_export.js