UNPKG

1.81 kBJavaScriptView Raw
1/*!
2 * https://github.com/paulmillr/es6-shim
3 * @license es6-shim Copyright 2013-2016 by Paul Miller (http://paulmillr.com)
4 * and contributors, MIT License
5 * es6-sham: v0.35.4
6 * see https://github.com/paulmillr/es6-shim/blob/0.35.3/LICENSE
7 * Details and documentation:
8 * https://github.com/paulmillr/es6-shim/
9 */
10(function(t,e){if(typeof define==="function"&&define.amd){define(e)}else if(typeof exports==="object"){module.exports=e()}else{t.returnExports=e()}})(this,function(){"use strict";var t=new Function("return this;");var e=t();var r=e.Object;var n=Function.call.bind(Function.call);var o=Function.toString;var i=String.prototype.match;var f=function(t){try{t();return false}catch(e){return true}};var u=function(){return!f(function(){r.defineProperty({},"x",{get:function(){}})})};var a=!!r.defineProperty&&u();(function(){if(r.setPrototypeOf){return}var t=r.getOwnPropertyNames;var e=r.getOwnPropertyDescriptor;var n=r.create;var o=r.defineProperty;var i=r.getPrototypeOf;var f=r.prototype;var u=function(r,n){t(n).forEach(function(t){o(r,t,e(n,t))});return r};var a=function(t,e){return u(n(e),t)};var c,p;try{c=e(f,"__proto__").set;c.call({},null);p=function(t,e){c.call(t,e);return t}}catch(s){c={__proto__:null};if(c instanceof r){p=a}else{c.__proto__=f;if(c instanceof r){p=function(t,e){t.__proto__=e;return t}}else{p=function(t,e){if(i(t)){t.__proto__=e;return t}return a(t,e)}}}}r.setPrototypeOf=p})();if(a&&function foo(){}.name!=="foo"){r.defineProperty(Function.prototype,"name",{configurable:true,enumerable:false,get:function(){if(this===Function.prototype){return""}var t=n(o,this);var e=n(i,t,/\s*function\s+([^(\s]*)\s*/);var f=e&&e[1];r.defineProperty(this,"name",{configurable:true,enumerable:false,writable:false,value:f});return f}})}});
11//# sourceMappingURL=es6-sham.map