diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-04-21 10:42:57 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-04-21 10:42:57 +0200 |
commit | 83f96399b82a7932a1f7d851af7975fd86e785d4 (patch) | |
tree | 4b1b725a85b8c4f79852e795ff8879bb3aae18de /js/vendor/es6-shim | |
parent | 982554058e1d2b7ddeaf22a6019dbfc5835cc0ff (diff) |
update js deps
Diffstat (limited to 'js/vendor/es6-shim')
-rw-r--r-- | js/vendor/es6-shim/.bower.json | 8 | ||||
-rw-r--r-- | js/vendor/es6-shim/CHANGELOG.md | 3 | ||||
-rw-r--r-- | js/vendor/es6-shim/bower.json | 2 | ||||
-rw-r--r-- | js/vendor/es6-shim/component.json | 2 | ||||
-rw-r--r-- | js/vendor/es6-shim/es6-shim.js | 32 | ||||
-rw-r--r-- | js/vendor/es6-shim/es6-shim.map | 2 | ||||
-rw-r--r-- | js/vendor/es6-shim/es6-shim.min.js | 5 | ||||
-rw-r--r-- | js/vendor/es6-shim/package.json | 4 |
8 files changed, 31 insertions, 27 deletions
diff --git a/js/vendor/es6-shim/.bower.json b/js/vendor/es6-shim/.bower.json index 397da17fe..ab5d66177 100644 --- a/js/vendor/es6-shim/.bower.json +++ b/js/vendor/es6-shim/.bower.json @@ -1,6 +1,6 @@ { "name": "es6-shim", - "version": "0.28.1", + "version": "0.28.2", "repo": "paulmillr/es6-shim", "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines", "keywords": [ @@ -28,11 +28,11 @@ "test" ], "homepage": "https://github.com/paulmillr/es6-shim", - "_release": "0.28.1", + "_release": "0.28.2", "_resolution": { "type": "version", - "tag": "0.28.1", - "commit": "c80f6037540026de9b8a0495310e2d37310942ee" + "tag": "0.28.2", + "commit": "f5a6b47afa92d81e38fe1e6e40854f07dcbe1ef8" }, "_source": "git://github.com/paulmillr/es6-shim.git", "_target": "~0.*", diff --git a/js/vendor/es6-shim/CHANGELOG.md b/js/vendor/es6-shim/CHANGELOG.md index 830b85dc7..7e71f6732 100644 --- a/js/vendor/es6-shim/CHANGELOG.md +++ b/js/vendor/es6-shim/CHANGELOG.md @@ -1,5 +1,8 @@ # es6-shim x.x.x (not yet released) +# es6-shim 0.28.2 (13 Apr 2015) +* `Map` and `Set` should have an arity of 0. + # es6-shim 0.28.1 (12 Apr 2015) * Ensure `Object.assign` only includes enumerable Symbols. diff --git a/js/vendor/es6-shim/bower.json b/js/vendor/es6-shim/bower.json index 9721755a9..2f5415ca4 100644 --- a/js/vendor/es6-shim/bower.json +++ b/js/vendor/es6-shim/bower.json @@ -1,6 +1,6 @@ { "name": "es6-shim", - "version": "0.28.1", + "version": "0.28.2", "repo": "paulmillr/es6-shim", "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines", "keywords": [ diff --git a/js/vendor/es6-shim/component.json b/js/vendor/es6-shim/component.json index b4e0ea75b..d74d3ace0 100644 --- a/js/vendor/es6-shim/component.json +++ b/js/vendor/es6-shim/component.json @@ -1,6 +1,6 @@ { "name": "es6-shim", - "version": "0.28.1", + "version": "0.28.2", "repo": "paulmillr/es6-shim", "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines", "keywords": [ diff --git a/js/vendor/es6-shim/es6-shim.js b/js/vendor/es6-shim/es6-shim.js index f9bf1991c..6cde64919 100644 --- a/js/vendor/es6-shim/es6-shim.js +++ b/js/vendor/es6-shim/es6-shim.js @@ -100,9 +100,7 @@ string: function (x) { return _toString(x) === '[object String]'; }, regex: function (x) { return _toString(x) === '[object RegExp]'; }, symbol: function (x) { - /*jshint notypeof: true */ return typeof globals.Symbol === 'function' && typeof x === 'symbol'; - /*jshint notypeof: false */ } }; @@ -1937,7 +1935,7 @@ }; addIterator(MapIterator.prototype); - function Map(iterable) { + function Map() { var map = this; if (!ES.TypeIsObject(map)) { throw new TypeError("Constructor Map requires 'new'"); @@ -1958,8 +1956,8 @@ }); // Optionally initialize map from iterable - if (typeof iterable !== 'undefined' && iterable !== null) { - var it = ES.GetIterator(iterable); + if (arguments.length > 0 && typeof arguments[0] !== 'undefined' && arguments[0] !== null) { + var it = ES.GetIterator(arguments[0]); var adder = map.set; if (!ES.IsCallable(adder)) { throw new TypeError('bad map'); } while (true) { @@ -2127,7 +2125,7 @@ // Sets containing only string or numeric keys, we use an object // as backing storage and lazily create a full Map only when // required. - var SetShim = function Set(iterable) { + var SetShim = function Set() { var set = this; if (!ES.TypeIsObject(set)) { throw new TypeError("Constructor Set requires 'new'"); @@ -2143,8 +2141,8 @@ }); // Optionally initialize map from iterable - if (typeof iterable !== 'undefined' && iterable !== null) { - var it = ES.GetIterator(iterable); + if (arguments.length > 0 && typeof arguments[0] !== 'undefined' && arguments[0] !== null) { + var it = ES.GetIterator(arguments[0]); var adder = set.add; if (!ES.IsCallable(adder)) { throw new TypeError('bad set'); } while (true) { @@ -2268,11 +2266,15 @@ var mapAcceptsArguments = valueOrFalseIfThrows(function () { return new Map([[1, 2]]).get(1) === 2; }); if (!mapAcceptsArguments) { var OrigMapNoArgs = globals.Map; - globals.Map = function Map(iterable) { + globals.Map = function Map() { if (!(this instanceof Map)) { throw new TypeError('Constructor Map requires "new"'); } var m = new OrigMapNoArgs(); + var iterable; + if (arguments.length > 0) { + iterable = arguments[0]; + } if (Array.isArray(iterable) || Type.string(iterable)) { Array.prototype.forEach.call(iterable, function (entry) { m.set(entry[0], entry[1]); @@ -2362,13 +2364,13 @@ return e instanceof TypeError; } }()); - if (globals.Map.length !== 1 || mapFailsToSupportSubclassing || !mapRequiresNew) { + if (globals.Map.length !== 0 || mapFailsToSupportSubclassing || !mapRequiresNew) { var OrigMap = globals.Map; - globals.Map = function Map(iterable) { + globals.Map = function Map() { if (!(this instanceof Map)) { throw new TypeError('Constructor Map requires "new"'); } - var m = new OrigMap(iterable); + var m = arguments.length > 0 ? new OrigMap(arguments[0]) : new OrigMap(); Object.setPrototypeOf(m, Map.prototype); defineProperty(m, 'constructor', Map, true); return m; @@ -2389,13 +2391,13 @@ return e instanceof TypeError; } }()); - if (globals.Set.length !== 1 || setFailsToSupportSubclassing || !setRequiresNew) { + if (globals.Set.length !== 0 || setFailsToSupportSubclassing || !setRequiresNew) { var OrigSet = globals.Set; - globals.Set = function Set(iterable) { + globals.Set = function Set() { if (!(this instanceof Set)) { throw new TypeError('Constructor Set requires "new"'); } - var s = new OrigSet(iterable); + var s = arguments.length > 0 ? new OrigSet(arguments[0]) : new OrigSet(); Object.setPrototypeOf(s, Set.prototype); defineProperty(s, 'constructor', Set, true); return s; diff --git a/js/vendor/es6-shim/es6-shim.map b/js/vendor/es6-shim/es6-shim.map index 5884e8008..b3d13c6ae 100644 --- a/js/vendor/es6-shim/es6-shim.map +++ b/js/vendor/es6-shim/es6-shim.map @@ -1 +1 @@ -{"version":3,"sources":["es6-shim.js"],"names":["root","factory","define","amd","exports","module","returnExports","this","not","notThunker","func","notThunk","apply","arguments","throwsError","e","valueOrFalseIfThrows","isCallableWithoutNew","supportsSubclassing","C","f","Object","setPrototypeOf","Sub","Subclass","arg","o","prototype","create","constructor","value","arePropertyDescriptorsSupported","defineProperty","startsWithRejectsRegex","String","startsWith","startsWithHandlesInfinity","Infinity","getGlobal","Function","globals","globalIsFinite","isFinite","supportsDescriptors","hasStrictMode","call","startsWithIsCompliant","_indexOf","bind","indexOf","_toString","toString","_hasOwnProperty","hasOwnProperty","ArrayIterator","noop","Symbol","symbolSpecies","species","Type","object","x","string","regex","symbol","numberIsNaN","Number","isNaN","numberIsFinite","name","force","configurable","enumerable","writable","Value","getter","TypeError","get","proxy","originalObject","key","targetObject","originalDescriptor","getOwnPropertyDescriptor","getKey","set","setKey","redefine","property","newValue","descriptor","preserveToString","target","source","defineProperties","map","keys","forEach","method","properties","Prototype","$iterator$","iterator","Set","addIterator","impl","isArguments","str","result","length","callee","safeApply","ES","Call","F","V","args","IsCallable","RequireObjectCoercible","optMessage","TypeIsObject","ToObject","ToInt32","ToNumber","ToUint32","ToInteger","number","Math","floor","abs","ToLength","len","MAX_SAFE_INTEGER","SameValue","a","b","SameValueZero","IsIterable","GetIterator","itFn","it","IteratorNext","next","Construct","obj","_es6construct","CreateHTML","tag","attribute","S","p1","escapedV","replace","p2","p3","emulateES6construct","fromCodePoint","originalFromCodePoint","codePoints","StringShims","i","RangeError","push","fromCharCode","join","raw","callSite","cooked","rawString","literalsegments","stringElements","nextIndex","nextKey","nextSeg","nextSub",1,"origStringRaw","stringRepeat","repeat","s","times","half","stringMaxLength","StringPrototypeShims","thisStr","searchStr","startArg","start","max","slice","endsWith","thisLen","posArg","pos","end","min","includes","searchString","position","codePointAt","first","charCodeAt","isEnd","second","origIncludes","hasStringTrimBug","trim","ws","trimRegexp","RegExp","StringIterator","_s","_i","done","substr","ArrayShims","from","iterable","mapFn","list","hasThisArg","thisArg","usingIterator","iterationValue","Array","of","iteratorResult","array","kind","retval","ObjectIterator","getAllKeys","shift","arrayOfSupportsSubclassing","Foo","fooArr","origArrayOf","ArrayPrototypeShims","copyWithin","to","fin","count","direction","fill","O","relativeStart","relativeEnd","find","predicate","findIndex","values","entries","unscopables","originalArrayPrototypeValues","getPrototypeOf","arrayFromSwallowsNegativeLengths","arrayFromHandlesIterables","arr","origArrayFrom","maxSafeInteger","pow","MIN_SAFE_INTEGER","EPSILON","parseInt","parseFloat","isInteger","isSafeInteger","item","idx","is","isEnumerableOn","propertyIsEnumerable","assignReducer","symbols","getOwnPropertySymbols","filter","concat","reduce","ObjectShims","assign","magic","checkArgs","proto","polyfill","assignHasPendingExceptions","preventExtensions","thrower","origAssign","FAKENULL","gpo","spo","p","objectKeysAcceptsPrimitives","originalObjectKeys","getOwnPropertyNames","objectGOPNAcceptsPrimitives","originalObjectGetOwnPropertyNames","objectGOPDAcceptsPrimitives","originalObjectGetOwnPropertyDescriptor","seal","objectSealAcceptsPrimitives","originalObjectSeal","isSealed","objectIsSealedAcceptsPrimitives","originalObjectIsSealed","freeze","objectFreezeAcceptsPrimitives","originalObjectFreeze","isFrozen","objectIsFrozenAcceptsPrimitives","originalObjectIsFrozen","objectPreventExtensionsAcceptsPrimitives","originalObjectPreventExtensions","isExtensible","objectIsExtensibleAcceptsPrimitives","originalObjectIsExtensible","objectGetProtoAcceptsPrimitives","originalGetProto","flags","regExpFlagsGetter","global","ignoreCase","multiline","unicode","sticky","regExpSupportsFlagsWithRegex","OrigRegExp","RegExpShim","pattern","regexGlobals","input","lastMatch","lastParen","leftContext","rightContext","prop","square","n","add","inverseEpsilon","roundTiesToEven","BINARY_32_EPSILON","BINARY_32_MAX_VALUE","BINARY_32_MIN_VALUE","MathShims","acosh","NaN","log","E","sqrt","asinh","atanh","cbrt","negate","clz32","LOG2E","cosh","exp","expm1","t","sum","hypot","y","anyNaN","allZero","anyInfinity","numbers","every","num","largest","divided","log2","log10","LOG10E","log1p","sign","sinh","tanh","trunc","imul","ah","al","bh","bl","fround","v","MAX_VALUE","expm1OfTen","origMathRound","round","roundHandlesBoundaryConditions","smallestPositiveNumberWhereRoundBreaks","largestPositiveNumberWhereRoundBreaks","roundDoesNotIncreaseIntegers","ceil","origImul","PromiseShim","Promise","Promise$prototype","IsPromise","promise","_promiseConstructor","_status","PromiseCapability","capability","resolver","resolve","reject","setTimeout","makeZeroTimeout","window","postMessage","timeouts","messageName","setZeroTimeout","fn","handleMessage","event","data","stopPropagation","addEventListener","makePromiseAsap","P","task","then","enqueue","setImmediate","process","nextTick","updatePromiseFromPotentialThenable","triggerPromiseReactions","reactions","reaction","handler","updateResult","promiseResolutionHandler","onFulfilled","onRejected","_resolveReactions","_rejectReactions","resolution","_result","reason","_promiseAllResolver","index","remaining","all","nextPromise","resolveElement","race","rejectPromise","resolvePromise","catch","resolutionHandler","resolveReaction","rejectReaction","accept","defer","chain","promiseSupportsSubclassing","promiseIgnoresNonFunctionThenCallbacks","promiseRequiresObjectContext","testOrder","k","preservesInsertionOrder","preservesNumericInsertionOrder","fastkey","type","emptyObject","collectionShims","Map","empty","MapEntry","prev","isRemoved","MapIterator","head","_head","_es6map","_storage","_size","adder","nextItem","Map$prototype","fkey","entry","has","delete","clear","callback","context","SetShim","_es6set","[[SetData]]","Set$prototype","ensureMap","m","charAt","size","hasFKey","entireSet","mapAcceptsArguments","OrigMapNoArgs","isArray","mapUsesSameValueZero","mapSupportsChaining","origMapSet","origMapGet","origMapHas","setUsesSameValueZero","setSupportsChaining","origSetAdd","origSetHas","origSetDel","SetDelete","mapSupportsSubclassing","M","mapFailsToSupportSubclassing","mapRequiresNew","OrigMap","setSupportsSubclassing","setFailsToSupportSubclassing","setRequiresNew","OrigSet","mapIterationThrowsStopIterator","Reflect","throwUnlessTargetIsObject","construct","deleteProperty","desc","enumerate","ownKeys","callAndCatchException","internalGet","receiver","parent","undefined","internalSet","existingDesc","ConvertExceptionToBoolean","propertyKey","attributes","objectDotGetPrototypeOf","willCreateCircularPrototype","Date","dateToString","shimmedDateToString","valueOf","stringHTMLshims","anchor","big","blink","bold","fixed","fontcolor","color","fontsize","italics","link","url","small","strike","sub","sup","shouldOverwrite","output","quotesCount","match","toLowerCase"],"mappings":";;;;;;;;;CAYC,SAAUA,EAAMC,GAEf,SAAWC,UAAW,YAAcA,OAAOC,IAAK,CAE9CD,OAAOD,OACF,UAAWG,WAAY,SAAU,CAItCC,OAAOD,QAAUH,QACZ,CAELD,EAAKM,cAAgBL,OAEvBM,KAAM,WACN,YAEA,IAAIC,GAAM,QAASC,IAAWC,GAC5B,MAAO,SAASC,KAAa,OAAQD,EAAKE,MAAML,KAAMM,YAExD,IAAIC,GAAc,SAAUJ,GAC1B,IACEA,GACA,OAAO,OACP,MAAOK,GACP,MAAO,OAGX,IAAIC,GAAuB,QAASA,IAAqBN,GACvD,IACE,MAAOA,KACP,MAAOK,GACP,MAAO,QAIX,IAAIE,GAAuBT,EAAIM,EAE/B,IAAII,GAAsB,SAAUC,EAAGC,GACrC,IAAKC,OAAOC,eAAgB,CAAE,MAAO,OACrC,MAAON,GAAqB,WAC1B,GAAIO,GAAM,QAASC,GAASC,GAC1B,GAAIC,GAAI,G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