From f2a65b0a4aa1cd6448ec5236190dcdf1f0eb12c4 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Fri, 25 Mar 2016 20:19:57 +0100 Subject: remove compiled js and 3rdparty deps from the repo --- js/vendor/es6-shim/.bower.json | 40 - js/vendor/es6-shim/CHANGELOG.md | 569 ---- js/vendor/es6-shim/Gruntfile.js | 98 - js/vendor/es6-shim/LICENSE | 26 - js/vendor/es6-shim/README.md | 269 -- js/vendor/es6-shim/bower.json | 28 - js/vendor/es6-shim/component.json | 23 - js/vendor/es6-shim/es6-sham.js | 168 - js/vendor/es6-shim/es6-sham.map | 1 - js/vendor/es6-shim/es6-sham.min.js | 11 - js/vendor/es6-shim/es6-shim.js | 3738 ---------------------- js/vendor/es6-shim/es6-shim.map | 1 - js/vendor/es6-shim/es6-shim.min.js | 12 - js/vendor/es6-shim/package.json | 86 - js/vendor/es6-shim/test-sham/function.js | 54 - js/vendor/es6-shim/test-sham/index.html | 23 - js/vendor/es6-shim/test-sham/set-prototype-of.js | 26 - js/vendor/es6-shim/testling.html | 37 - 18 files changed, 5210 deletions(-) delete mode 100644 js/vendor/es6-shim/.bower.json delete mode 100644 js/vendor/es6-shim/CHANGELOG.md delete mode 100644 js/vendor/es6-shim/Gruntfile.js delete mode 100644 js/vendor/es6-shim/LICENSE delete mode 100644 js/vendor/es6-shim/README.md delete mode 100644 js/vendor/es6-shim/bower.json delete mode 100644 js/vendor/es6-shim/component.json delete mode 100644 js/vendor/es6-shim/es6-sham.js delete mode 100644 js/vendor/es6-shim/es6-sham.map delete mode 100644 js/vendor/es6-shim/es6-sham.min.js delete mode 100644 js/vendor/es6-shim/es6-shim.js delete mode 100644 js/vendor/es6-shim/es6-shim.map delete mode 100644 js/vendor/es6-shim/es6-shim.min.js delete mode 100644 js/vendor/es6-shim/package.json delete mode 100644 js/vendor/es6-shim/test-sham/function.js delete mode 100644 js/vendor/es6-shim/test-sham/index.html delete mode 100644 js/vendor/es6-shim/test-sham/set-prototype-of.js delete mode 100644 js/vendor/es6-shim/testling.html (limited to 'js/vendor/es6-shim') diff --git a/js/vendor/es6-shim/.bower.json b/js/vendor/es6-shim/.bower.json deleted file mode 100644 index 7461e7d9c..000000000 --- a/js/vendor/es6-shim/.bower.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "es6-shim", - "repo": "paulmillr/es6-shim", - "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines", - "keywords": [ - "ecmascript", - "harmony", - "es6", - "shim", - "promise", - "promises", - "setPrototypeOf", - "map", - "set", - "__proto__" - ], - "main": "es6-shim.js", - "scripts": [ - "es6-shim.js" - ], - "dependencies": {}, - "development": {}, - "ignore": [ - "**/.*", - "node_modules", - "components", - "test" - ], - "homepage": "https://github.com/paulmillr/es6-shim", - "version": "0.35.0", - "_release": "0.35.0", - "_resolution": { - "type": "version", - "tag": "0.35.0", - "commit": "b9eda4eb91e38664a31c6d7aacf95f82a7930528" - }, - "_source": "git://github.com/paulmillr/es6-shim.git", - "_target": "~0.*", - "_originalSource": "es6-shim" -} \ No newline at end of file diff --git a/js/vendor/es6-shim/CHANGELOG.md b/js/vendor/es6-shim/CHANGELOG.md deleted file mode 100644 index 33d53122c..000000000 --- a/js/vendor/es6-shim/CHANGELOG.md +++ /dev/null @@ -1,569 +0,0 @@ -# es6-shim 0.35.0 (29 Feb 2016) -* [Breaking] remove `Reflect.enumerate` (#405) -* [New] Add `Array#indexOf` from post-ES6 errata -* [New] Ensure `RegExp#toString` is compliant -* [New] [sham] Add `Function#toString` to `es6-sham` -* [Fix] ensure that a non-object `globals.Reflect` doesn’t break the shim (#392) -* [Fix] In ES3 browsers (like Safari 4) `Reflect.getPrototypeOf` is undefined -* [Fix] `Object.keys`: handle regexes in ES3 browsers (#287) -* [Performance] Early exit from tanh for values outside of +-20 at limits of JS precision (#411) -* [Tests] `Function#name` on `new Function`s is empty string in v8 -* [Tests] `Function#name` is non-configurable pre-ES6 -* [Tests] up to `node` `v5.7`, `v4.3` -* [Docs] correct readme; we sham Function#name, not toString - -# es6-shim 0.34.4 (9 Feb 2016) -* [Fix] 'Uncaught (in promise) TypeError' in Chrome 48 (#408, #407) -* [Fix] handle the obscure case where `startsWith` throws on the second parameter (#399) -* [Tests] silence a promise rejection error in Chrome - -# es6-shim 0.34.3 (8 Feb 2016) -* [Fix] Suppress “uncaught rejection” warnings in Chrome 50 console (#403) -* [Fix] ensure ES3 `Number` constants don’t get lost in ES3 browsers (#402) -* [Dev Deps] update `chai`, `es5-shim`, `jscs`, `mocha` -* [Tests] up to `node` `v5.5` - -# es6-shim 0.34.2 (22 Jan 2016) -* [Fix] `JSON.stringify` should ignore a replacer arg unless it’s an array or function. -* [Fix] `Array#copyWithin`: check for inherited properties as well -* [Fix] `Array#copyWithin`: should delete the target key if the source key is not present -* [Performance] Optimize Map/Set fast key path (#397) -* [Tests] fix `Reflect.enumerate` tests to not call `next` too many times -* [Dev Deps] update `jscs`, `jshint` -* [Docs] update license year to 2016 (#400) - -# es6-shim 0.34.1 (5 Jan 2016) -* [Fix] `RegExp#[Symbol.search]` was broken with a regex argument (#394) -* [Fix] ensure that Set#clear works with both primitive and object values -* [Fix] static Promise methods have the wrong length in Firefox -* [Robustness] Cache `Object.keys` -* [Performance] Avoid accessing arguments array without length check -* [Performance] Optimize ES.TypeIsObject (#388) -* [Performance] Promises: lots of improvements (#383) -* [Performance] Only use slow implementation of IsCallable where necessary (old browsers) -* [Performance] Promises: remove unnecessary `.bind` on `setImmediate` -* [Refactor] extract “decode fast Map key” logic -* [Dev Deps] update `s5-shim`, `@ljharb/eslint-config` -* Don’t npmignore tests -* [Tests] Fix a bug with “deep equal” wrt NaN -* [Tests] split up Map and Set test files -* [Tests] up to `node` `v5.3` - -# es6-shim 0.34.0 (14 Dec 2015) -* [Breaking] Remove `Symbol.species` from `Promise.all` and `Promise.race` (#34) -* [Fix] Firefox has enumerable Promise static methods -* [Fix] prevent crashes in older Firefox when checking if Array methods ToLength correctly -* [Fix] `Reflect.enumerate`: ensure correct property ordering in Firefox 19 (and likely others) -* [Fix] Ensure that `toLengthsCorrectly` returns `true` when it passes, instead of `undefined` -* [Fix] Don't call `Reflect.construct` unless it's actually present -* [Fix] Ensure `Map` and `Set` do not have an own `constructor` property (#368) -* [Fix] Add missing checks to Promise.resolve and Promise.reject (#379) -* [Fix] `Map`: older v8s have a SameValueZero bug when a Map has a size > 4 (#378) -* [Fix] `Map`: when provided with an iterable that yields non-Object values, should throw -* [Fix] `Promise`: Make sure to shim broken implementations in Chrome 49 Canary -* [Fix] `Promise`: Chrome does not retrieve a thenable's .then synchronously (#372) -* [New] Add `RegExp.prototype[Symbol.{match,search,split,replace}]` -* [New] support `Symbol.match` in `RegExp` constructor -* [New] add `Symbol.match` and ensure `String#{match, startsWith, endsWith, includes}` support it -* [New] add `Symbol.split` and ensure `String#split` supports it -* [New] add `Symbol.replace` and ensure `String#replace` supports it -* [New] add `Symbol.search` and ensure `String#search` supports it -* [Robustness] Add and use `ES.ToString` so as not to rely on the global `String` -* [Dev Deps] update `eslint`, `jscs`, `mocha`, `uglify-js`, `es5-shim`, `grunt-saucelabs` -* [Tests] bailing out of some tests when the feature isn't present, to clean up native test failure output -* [Tests] up to `node` `v5.2` -* [Tests] fix `npm run test:native` -* [Tests] Ensure `Promise.{reject,resolve}` throws when the receiver is a primitive (#379) -* [Tests] Further ensure that Promise.resolve/reject work with a non-promise receiver (#379) -* [Docs] update README URLs (#375) -* [Docs] fix some typos (#380) - -# es6-shim 0.33.13 (12 Nov 2015) -* [Fix] `Number`: when no arguments are passed, return `+0`. -* [Fix] `Number`: Make sure string values are trimmed before attempting to parse. -* [Tests] cleaning up `Number` tests) -* [Dev Deps] update `uglify-js` - -# es6-shim 0.33.12 (11 Nov 2015) -* [Fix] IE 8: more NFE madness. -* [Dev Deps] update `es5-shim` -* [Docs] removing now-fixed `Number` caveat -* [Docs] use assertions so `evalmd` will test the readme better. -* [Docs] fix incorrect isFinite note (#373) - -# es6-shim 0.33.11 (9 Nov 2015) -* [Fix] handle future change of RegExp.prototype not being a regex (#370, #371) -* [Fix] disallow invalid hex strings in `Number` (#369) -* [Tests] Tweak "polluted prototype" approach -* [Dev Deps] update `chai`, `es5-shim`, `eslint`, `@ljharb/eslint-config`, `jscs` - -# es6-shim 0.33.10 (2 Nov 2015) -* [Fix] the `Number` constructor properly trims (or not) whitespace characters (#368) -* [Fix] `Number('0b12')` and `Number('0o18')` should both be `NaN` (#366) -* [Tests] Fix npm upgrades in older nodes -* [Tests] add `npm run tests-only` -* [Tests] on `node` `v5.0` -* [Tests] ensure `JSON.stringify` has the right name -* [Tests] add `npm run eslint` -* [Dev Deps] update `es5-shim`, `jscs` -* [Cleanup] Rearrange things so that they’re defined before they’re used -* [Cleanup] Don't reassign to function or catch parameters -* [Cleanup] Remove unused variables -* [Refactor] String#trim shim should use `defineProperty`, and check more non-whitespace chars - -# es6-shim 0.33.9 (29 Oct 2015) -* [Fix] IE 8: `Number(new Number(1))` was throwing. More NFE madness. (#365) - -# es6-shim 0.33.8 (23 Oct 2015) -* [Fix] IE 8: `Promise.resolve(2)` was throwing. More named function expression madness. -* [Tests] Reflect: Don't attempt to define properties on this test object unless we're in true ES5. - -# es6-shim 0.33.7 (23 Oct 2015) -* [Fix] Ensure `preserveToString` does not throw when the original does not exist (#359) -* [Fix] `Promise`: properly handle named function expressions in IE 8. -* [Fix] `Number`: `wrapConstructor` now works in ES3 (#365) -* [Docs] Document `Number` supporting string binary and octal literals. -* [Tests] add commented-out test for `typeof Number.call(Object(3), 3) === 'number'`, which fails atm. -* [Tests] Fix browser tests sans-`npm install` -* [Dev Deps] update `es5-shim`, `jscs`, `uglify-js`, `chai` - -# es6-shim 0.33.6 (29 Sep 2015) -* [Fix] In IE 6-8, of course, `typeof setTimeout` is "object" -* [Tests] Upgrade jQuery on the test HTML pages - -# es6-shim 0.33.5 (28 Sep 2015) -* [Fix] IE 6-8 have wacky scoping issues with named function expressions. -* [Fix] Apparently in IE 8, RegExp#test is an own property of regexes, not a prototype method -* [Fix] Make sure to treat `es5-sham`'s `Object.defineProperty` as unsupported, in IE 8 - -# es6-shim 0.33.4 (27 Sep 2015) -* [Fix] Add test, and fix, for `JSON.stringify(Object(Symbol()))` throwing on Chrome 45 -* [Fix] Wrap `JSON.stringify` when `Symbol` exists and it fails to serialize them correctly -* [Fix] fix `Reflect.defineProperty` on edge v0.12 -* [Robustness] Cache `Array.isArray` internally -* [Refactor] Use internal `overrideNative` helper for String.prototype HTML methods -* [Refactor] Update `is-arguments` implementation; don't call down legacy code path in modern engines -* [Tests] Add `evalmd` to verify that example code blocks are valid -* [Tests] Adding a test for Safari 7.1 and later (runtime check added in 8a8ddd36186cdc1fcb3fcc259ec9ecef1e141901) -* [Tests] Add additional `JSON.stringify` test for `Symbol` and object `Symbol` values -* [Tests] up to `io.js` `v3.3`, `node` `v4.1` -* [Dev Deps] update `es5-shim`, `mocha`, `chai` - -# es6-shim 0.33.3 (31 Aug 2015) -* [Fix] Handle Firefox Nightly's broken `construct` method -* [Tests] Add `JSON.stringify` tests for handling `Symbol`s - -# es6-shim 0.33.2 (26 Aug 2015) -* [Fix] Make sure that minified code preserves function names. -* [Fix] Skip the `Promise` shim when `setTimeout` is not available ([#301](https://github.com/paulmillr/es6-shim/issues/301#issuecomment-126566703)) -* [Docs] Add note about `setPrototypeOf` on null objects - -# es6-shim 0.33.1 (20 Aug 2015) -* [New] Add support for binary and octal literals in strings to the `Number` constructor (#358) -* [Docs] Update spec link to final spec -* [Fix] `Reflect.enumerate`: does not necessarily wait until the first `next()` to determine keys. -* [Refactors] split up some tests; name some functions; remove unnecessary code -* {Refactors] make ObjectIterator properties non-enumerable -* [Refactors] Refactor `RegExp` wrapping code so most of it can be reused. -* [Tests] up to `io.js` `v3.1` -* [Dev Deps] update `grunt-contrib-connect`, `jscs` - -# es6-shim 0.33.0 (30 Jul 2015) -* [Breaking] Avoid CSP errors in Chrome apps by using global var detection (#301) -* [Performance] Rearranging some of the Map/Set runtime shim clobberings to be more efficient. -* [Refactor] Implement `Array.of` directly, rather than in terms of `Array.from` -* [Dev Deps] Update `chai`, `es5-shim`, `promises-aplus-tests`, `uglify-js` -* [Tests] Add test for `Object.getPrototypeOf` accepting primitives. -* [Tests] Bail out of individual `Reflect` tests when the methods don’t exist -* [Tests] Test on latest `io.js` - -# es6-shim 0.32.3 (21 Jun 2015) -* [Fix] Override or wrap native `Reflect` methods in Microsoft Edge v0.11 as required. -* [Fix] Edge v0.11: `Array.from([], undefined)` should not throw -* [Fix] Fix a bug in `Array.from handles iterables` runtime clobbering, which would always replace the native function -* [Fix] Ensure that `Set#has` has the correct name in Edge v0.11 -* [Tests] Add `Map`/`Set` error messages for Edge v0.11 -* [Tests] Fix `Math.fround` test value for Edge v0.11 -* [Tests] Bail out of `Map`/`Set` test blocks if they don't exist -* [Docs] Update ES5 subclassing instructions in the README. -* [Dev Deps] Update `es5-shim` - -# es6-shim 0.32.2 (17 Jun 2015) -* [Fix] `Object.assign` with no sources should coerce to an object (#348) -* [Fix] `String#includes` should throw when given a `RegExp` (#349) -* [Fix] `RegExp()` should not throw (#350) -* [Fix] Create `Value.defineByDescriptor`, fix `create` when `Object.create` is unavailable. -* [Compliance] Update `Promise.reject` to match official ECMA-262 spec. -* [Dev Deps] Update `es5-shim` - -# es6-shim 0.32.1 (13 Jun 2015) -* [Fix] Make sure that all `Map`/`Set` shim forms properly add an iterable to the collection instance. -* [Tests] Make sure none of the `Array` ToLength tests throw *any* error (#347) - -# es6-shim 0.32.0 (7 Jun 2015) -* [Spec compliance] Update Promises to match finalized ES6 spec (#345, #344, #239) -* [Fix] Ensure `Map`, `Set`, and `Promise` shims all throw when used without "new". -* [Tests] Fix the pending exceptions test for Safari 5.1 -* [Refactor] Since the String HTML shims will be iterated anyways, no need to defineProperties them twice. -* [Deps] Update `chai`, `es5-shim` - -# es6-shim 0.31.3 (2 Jun 2015) -* [Fix] Properly name more shim functions -* [Fix] Fix an IE bug where the layout engine internally calls the userland `Object.getOwnPropertyNames` -* [Fix] Ensure `Map.prototype[Symbol.iterator] === Map.prototype.entries` -* [Fix] Ensure `Set.prototype[Symbol.iterator] === Set.prototype.values` -* [Tests] `Object.assign` pending exceptions: IE 9 `preventExtensions` doesn't throw, even in strict mode -* [Security] Cache more native methods in case they're overwritten later -* [Tests] IE 11 has native `Map`/`Set`, but it takes an optional *function*, not an optional iterable, in the constructor -* [Tests] Add more "exists" early bailouts, to declutter native test results -* [Docs] Alphabetize shim lists in the README -* [Perf] Add more `Map`/`Set` fast paths for more primitives: boolean, null, undefined -* [Tests] Test up to `io.js` `v2.2` -* [Deps] Update `mocha`, `es5-shim`, `uglify-js`, `jshint` -* [Refactor] Style cleanups - -# es6-shim 0.31.2 (9 May 2015) -* Fix ES5 `Array.prototype` method wrappers to return the correct value. (#341) - -# es6-shim 0.31.1 (7 May 2015) -* `RegExp` should work properly as a wrapper (#340) - -# es6-shim 0.31.0 (1 May 2015) -* All Array.prototype methods should use `ToLength`, not `ToUint32`, on `this.length`. -* Preserve and use original Array.prototype functions (for later shimming) -* Make String#{startsWith, endsWith, includes} tests a bit more granular. -* Fix Map/Set invalid receiver error messages for WebKit -* Update `grunt-saucelabs`, `jscs` - -# es6-shim 0.30.0 (26 Apr 2015) -* `Map` and `Set` methods are not generic, and must only be called on valid `Map` and `Set` objects. -* Use the native `Number#clz` (in Safari 8, eg) inside `Math.clz32` - -# es6-shim 0.29.0 (26 Apr 2015) -* Test on `io.js` `v1.7` and `v1.8` -* Ensure that shallowly wrapped Maps’ and Sets’ prototypes aren't one level too far away. -* Update `chai` and use new matchers -* Avoid reassigning argument variables to avoid deoptimizations -* Ensure that ES3 browsers get both `Object.is` and `Object.assign` -* Improve `Object.assign` to avoid leaking arguments in v8 -* Ensuring `Number.parseInt === parseInt` (failed in FF 37) -* a little more accurate Math.cbrt (#335) -* Test cleanups -* Adding `Symbol.unscopables` tests -* Adding tests to ensure that default iterators on builtins === the appropriate prototype function. - -# 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. - -# es6-shim 0.28.0 (12 Apr 2015) -* Ensure `Object.assign` also includes Symbols. -* Make sure to clobber Firefox 37's very slow native Object.assign, that has "pending exception" logic. -* Adding much more granular Set/Map acceptance tests and replacements, to preserve as much of the original implementation as possible. (#326, #328) -* Lots of test additions and cleanup - * Fill in (and fix) missing name, arity, and enumerability tests. - * Using `property` matcher for a more helpful failure message. - * Make sure this test doesn't fail if `Array#values` doesn't exist yet. - * Make this `@@iterator` test not depend on `Array#values`, and properly skip tests if the symbol isn't available. -* Update `Math.fround` with a much smaller implementation (#332) -* Lock `uglify-js` down to v2.4.17, since v2.4.18 and v2.4.19 have a breaking change. -* Update `es5-shim`, `mocha`, `grunt-contrib-connect`, `chai`, `jshint` -* IE 11 TP has a broken `String.raw` implementation -* Overwriting some imprecise Math functions on IE 11 TP. -* Overwrite `Math.imul` in Safari 8 to report the correct length. -* Fix Math.round for very large numbers -* Don't rely on shims in tests, for better native failure checking. -* Shim `Object.is` in ES3 environments, and add tests. -* Test the native `Object.assign` prior to shimming it. -* Tweak the `travis-ci` config to make a separate "lint only" test run. -* Fix Firefox 4 test failures: ensure RegExp global aliases starting with "$" exist. -* more efficient Math.clz32 (#327) -* Fix Webkit nightly bugs with `Array.from` and `Array.of`. -* Make sure shims that depend on `Number.isNaN` and `Number.isFinite` will always work. -* The latest Webkit nightly has a bug with `String#includes` and a position arg of `Infinity`. -* Webkit r181855 has a noncompliant `String#startsWith` and `String#endsWith` -* Clean up README; add more accurate note about `es5-shim`. -* Updating the `String.raw` code to be more in line with the changes in RC2/Rev 35 of the spec. - -# es6-shim 0.27.1 (5 Mar 2015) -* Revert `Array#slice` changes. (#322) -* Test on `io.js` `v1.4` - -# es6-shim 0.27.0 (26 Feb 2015) -* Overwrite `Array#slice` so that it supports Array subclasses. -* Improve `Map`/`Set` `TypeError` messages when called as a function. (#321) - -# es6-shim 0.26.1 (25 Feb 2015) -* Ensure `Array`/`Array.prototype` functions have the correct name. -* Chrome 40 defines the incorrect name for `Array#values` -* Make sure that `Array.of` works when subclassed. - -# es6-shim 0.26.0 (24 Feb 2015) -* Ensure that remaining Object static methods accept primitives. -* Update `chai` -* Document `String.prototype` HTML methods and `Reflect` methods in README - -# es6-shim 0.25.3 (22 Feb 2015) -* Removing nonexistent arguments from some String.prototype HTML methods -* All grade A-supported `node`/`iojs` versions now ship with an `npm` that understands `^`. -* Test on `iojs-v1.3` -* Update `chai` -* Add a LICENSE file - -# es6-shim 0.25.2 (18 Feb 2015) -* If someone (looking at you, chalk) has previously modified String.prototype with a non-function “bold”, don‘t break. (#315) - -# es6-shim 0.25.1 (18 Feb 2015) -* Add Annex B String.prototype HTML methods. -* Overwriting Annex B String.prototype HTML methods in IE 9, which both uppercases the tag names, and fails to escape double quotes. -* Overwriting Annex B String.prototype HTML methods in Safari 4-5, which fails to escape double quotes. -* Ensuring that Date#toString returns “Invalid Date” when the date‘s value is NaN. -* Test on `iojs-v1.2` - -# es6-shim 0.25.0 (16 Feb 2015) -* Ensure Object.getOwnPropertyNames accepts primitives. -* Make sure the replaced `Object.keys` is non-enumerable. -* Clean up lots of tests to make failures easier to read, and false negatives less common - -# es6-shim 0.24.0 (5 Feb 2015) -* Improving accuracy of Math.expm1 values, and ensuring a shim on Linux FF 35, which reports an inaccurate value for Math.expm1(10). -* Fix bug from 7454db144e5aa251d599415cfb296b67aa3cf992 which prevented String#startsWith and String#endsWith from being overwritten in old Firefox. -* Improve tests across a wider list of browsers -* Ensure that individual Reflect methods are added when possible -* Add Reflect (#313) -* Fix node 0.11: it has an imprecise Math.sinh with very small numbers. -* Alter String#repeat RangeError message to align with Firefox’s native implementation. - -# es6-shim 0.23.0 (26 Jan 2015) -* Use Symbol.species when available, else fall back to "@@species" (renamed from "@@create") -* Fix `npm run test-native` -* Correct broken Math implementations: `log1p`, `exmp1`, `tanh`, `acosh`, `cosh`, `sinh`, `round` (#314) -* Update `jscs`, `grunt-saucelabs`, `jshint` - -# es6-shim 0.22.2 (4 Jan 2015) -* Faster travis-ci builds -* Better ES3 support: quoting/avoiding reserved words -* Update `mocha`, `jscs`, `jshint`, `grunt-saucelabs`, `uglify-js` - -# es6-shim 0.22.1 (13 Dec 2014) -* Make RegExp#flags generic, per spec (#310) - -# es6-shim 0.22.0 (12 Dec 2014) -* Add RegExp#flags -* Make `new RegExp` work with both a regex and a flags string -* Remove non-spec `Object.{getPropertyNames,getPropertyDescriptor}` - -# es6-shim 0.21.1 (4 Dec 2014) -* Promise/Promise.prototype methods, and String#{startsWith,endsWith} are now not enumerable -* Array#{keys, values, entries} should all be @@unscopeable in browsers that support that -* Ensure that tampering with Function#{call,apply} won’t break internal methods -* Add Math.clz32, RegExp tests -* Update es6-sham UMD -* Update `chai`, `es5-shim`, `grunt-saucelabs`, `jscs` - -# es6-shim 0.21.0 (21 Nov 2014) -* String#contains → String#includes per 2014-11-19 TC39 meeting -* Use an invalid identifier as the es6-shim iterator key, so it doesn’t show up in the console as easily. - -# es6-shim 0.20.4 (20 Nov 2014) -* Performance improvements: avoid slicing arguments, avoid `Function#call` when possible -* Name `String.{fromCodePoint,raw}` for debugging -* Fix `String.raw` to match spec -* Ensure Chrome’s excess Promise methods are purged -* Ensure `Set#keys === Set#values`, per spec - -# es6-shim 0.20.3 (19 Nov 2014) -* Fix Set#add and Map#set to always return "this" (#302) -* Clarify TypeError messages thrown by Map/Set -* Fix Chrome 38 bug with Array#values - -# es6-shim 0.20.2 (28 Oct 2014) -* Fix AMD (#299) - -# es6-shim 0.20.1 (27 Oct 2014) -* Set#delete and Map#delete should return false unless a deletion occurred. (#298) - -# es6-shim 0.20.0 (26 Oct 2014) -* Use a more reliable UMD -* export the global object rather than undefined - -# es6-shim 0.19.2 (25 Oct 2014) -* Set#delete and Map#delete should return a boolean indicating success. (#298) -* Make style consistent; add jscs - -# es6-shim 0.19.1 (14 Oct 2014) -* Fix Map#set and Set#add to be chainable (#295) -* Update mocha - -# es6-shim 0.19.0 (9 Oct 2014) -* Detect and override noncompliant Map in Firefox 32 (#294) -* Fix Map and Set for engines that don’t preserve numeric key order (#292, #290) -* Detect and override noncompliant Safari 7.1 Promises (#289) -* Fix Array#keys and Array#entries in Safari 7.1 -* General style and whitespace cleanup -* Update dependencies -* Clean up tests for ES3 by removing reserved words - -# es6-shim 0.18.0 (6 Sep 2014) -* Speed up String#trim replacement (#284) -* named Array#find and Array#findIndex for easier debugging -* Replace broken native implementation in Firefox 25-31 for Array#find and Array#findIndex -* Ensure String.fromCodePoint has the correct length in Firefox -* List the license in `package.json` for `npm` -* Array.from: fix spec bug with Array.from([], undefined) throwing -* Array.from: fix Firefox Array.from bug wrt swallowing negative lengths vs throwing - -# es6-shim 0.17.0 (31 Aug 2014) -* Added es6-sham (#281) -* Fixing some flaky tests (#268) -* Tweaking how ArrayIterator is checked in its "next" function -* Cleaning up some of the logic in Array.from - -# es6-shim 0.16.0 (6 Aug 2014) -* Array#find and Array#findIndex: no longer skips holes in sparse arrays, per https://bugs.ecmascript.org/show_bug.cgi?id=3107 - -# es6-shim 0.15.1 (5 Aug 2014) -* Array.from: now correctly throws if provided `undefined` as a mapper function -* Array.from: now correctly works if provided a falsy `thisArg` -* Fix tests so they work properly when Array#(values|keys|entries) are not present -* Add `npm run lint` to run style checks independently -* Add `test/native.html` so browsers can be easily checked for shim-less compliance. - -# es6-shim 0.15.0 (31 Jul 2014) -* Object.assign no longer throws on null or undefined sources, per https://bugs.ecmascript.org/show_bug.cgi?id=3096 - -# es6-shim 0.14.0 (20 Jul 2014) -* Properly recognize Symbol.iterator when it is present (#277) -* Fix Math.clz’s improper handling of values that coerce to NaN (#269) -* Fix incorrect handling of negative end index on Array#fill (#270) -* Removed Object.getOwnPropertyKeys, which shouldn’t be anywhere (#267) -* Fixed arity of Map and Set constructors, per 2014.04.27 draft spec (rev 24) -* Added a full additional suite of ES6 promise tests (thanks to @smikes!) (#265) -* Make Number.isInteger a bit more efficient (#266) -* Added `npm run test-native` to expose how broken implementations are without the shim ;-) -* Added additional tests - -# es6-shim 0.13.0 (11 Jun 2014) -* Adapt to new Array.from changes: mapper function is now called with both value and index (#261, #262) -* More reliably getting the global object in strict mode to fix node-webkit (#258, #259) -* Properly test the global Promise for ignoring non-function callbacks (#258) - -# es6-shim 0.12.0 (4 Jun 2014) -* Fix String#trim implementations that incorrectly trim \u0085 -* Stop relying on ArrayIterator being a public var, fixing Safari 8 - -# es6-shim 0.11.1 (2 Jun 2014) -* Make sure to shim Object.assign in all environments, not just true ES5 -* Now including minified file and source map - -# es6-shim 0.11.0 (11 May 2014) -* Remove `Object.getOwnPropertyDescriptors`, per spec. (#234, #235) -* IE8 fixes. (#163, #236) -* Improve `Promise` scheduling. (#231) -* Add some more standalone shims -* Use an Object.create fallback, for better ES3 compatibility -* Fix Math.expm1 in more browsers (#84) -* Fix es6-shim in Web Workers (#247, #248) -* Correct Object.assign to take multiple sources (#241) - -# es6-shim 0.10.1 (13 Mar 2014) -* Update bower.json, component.json, and .npmignore (#229, #230, #233) -* Minor updates to `Promise` implementation and test suite. -* Workaround lack of "strict mode" in IE9. (#232) - -# es6-shim 0.10.0 (1 March 2014) -* Implement `Promise`, per spec. (#209, #215, #224, #225) -* Make `Map`/`Set` subclassable; support `iterable` argument to - constructor (#218) -* Rename `Number#clz` to `Math.clz32` (#217) -* Bug fixes to `Array#find` and `Array#findIndex` on sparse arrays (#213) -* Re-add `Number.isInteger` (mistakenly removed in 0.9.0) -* Allow use of `arguments` as an iterable -* Minor spec-compliance fixes for `String.raw` -* In ES6, `Object.keys` accepts non-Object types (#220) -* Improved browser compatibility with IE 9/10, Opera 12 (#225) - -# es6-shim 0.9.3 (5 February 2014) -* Per spec, removed `Object.mixin` (#192) -* Per spec, treat -0 and +0 keys as identical in Map/Set (#129, #204) -* Per spec, `ArrayIterator`/`Array#values()` skips sparse indexes now. (#189) -* Added `Array.from`, supporting Map/Set/Array/String iterators (the String iterator iterates over codepoints, not indexes) (#182) -* Bug fixes to Map/Set iteration after concurrent delete. (#183) -* Bug fixes to `Number.clz`: 0 and 0x100000000 are handled correctly now. (#196) -* Added `Math.fround` to truncate to a 32-bit floating point number. (#140) -* Bug fix for `Math.cosh` (#178) -* Work around Firefox bugs in `String#startsWith` and `String#endsWith` (#172) -* Work around Safari bug in `Math.imul` - -# es6-shim 0.9.2 (18 December 2013) -* Negative `String#endsWith` position is now handled properly. -* `TypeError` is now thrown when string methods are called - on `null` / `undefined`. - -# es6-shim 0.9.1 (28 October 2013) -* Added `Array#copyWithin` and `Number.MIN_SAFE_INTEGER` -* Big speed-up of Maps / Sets for string / number keys: - they are O(1) now. -* Changed `Math.hypot` according to spec. -* Other small fixes. - -# es6-shim 0.9.0 (30 August 2013) -* Added Array iteration methods: `Array#keys`, `Array#values`, `Array#entries`, which return an `ArrayIterator` -* Changed `Map` and `Set` constructors to conform to spec when called without `new` -* Added `Math.imul` -* Per spec, removed `Number.toInteger`, `Number.isInteger`, and `Number.MAX_INTEGER`; added `Number.isSafeInteger`, `Number.MAX_SAFE_INTEGER` -* Added extensive additional tests for many methods - -# es6-shim 0.8.0 (8 June 2013) -* Added `Object.setPrototypeOf`, `Set#keys`, `Set#values`, `Map#keys`, `Map#values`, `Map#entries`, `Set#entries`. -* Fixed `String#repeat` according to spec. - -# es6-shim 0.7.0 (2 April 2013) -* Added `Array#find`, `Array#findIndex`, `Object.assign`, `Object.mixin`, - `Math.cbrt`, `String.fromCodePoint`, `String#codePointAt`. -* Removed `Object.isnt`. -* Made Math functions fully conform spec. - -# es6-shim 0.6.0 (15 January 2013) -* Added `Map#keys`, `Map#values`, `Map#size`, `Set#size`, `Set#clear`. - -# es6-shim 0.5.3 (2 September 2012) -* Made `String#startsWith`, `String#endsWith` fully conform spec. - -# es6-shim 0.5.2 (17 June 2012) -* Removed `String#toArray` and `Object.isObject` as per spec updates. - -# es6-shim 0.5.1 (14 June 2012) -* Made Map and Set follow Spidermonkey implementation instead of V8. -`var m = Map(); m.set('key', void 0); m.has('key');` now gives true. - -# es6-shim 0.5.0 (13 June 2012) -* Added Number.MAX_INTEGER, Number.EPSILON, Number.parseInt, -Number.parseFloat, Number.prototype.clz, Object.isObject. - -# es6-shim 0.4.1 (11 May 2012) -* Fixed boundary checking in Number.isInteger. - -# es6-shim 0.4.0 (8 February 2012) -* Added Math.log10, Math.log2, Math.log1p, Math.expm1, Math.cosh, -Math.sinh, Math.tanh, Math.acosh, Math.asinh, Math.atanh, Math.hypot, -Math.trunc. - -# es6-shim 0.3.1 (30 January 2012) -* Added IE8 support. - -# es6-shim 0.3.0 (27 January 2012) -* Added Number.isFinite() and Object.isnt(). - -# es6-shim 0.2.1 (7 January 2012) -* Fixed a bug in String#endsWith(). - -# es6-shim 0.2.0 (25 December 2011) -* Added browser support. -* Added tests. -* Added Math.sign(). - -# es6-shim 0.1.0 (25 December 2011) -* Initial release diff --git a/js/vendor/es6-shim/Gruntfile.js b/js/vendor/es6-shim/Gruntfile.js deleted file mode 100644 index 230934d6b..000000000 --- a/js/vendor/es6-shim/Gruntfile.js +++ /dev/null @@ -1,98 +0,0 @@ -'use strict'; - -module.exports = function (grunt) { - var browsers = [ - { browserName: 'firefox', version: '19', platform: 'XP' }, - { browserName: 'firefox', platform: 'linux' }, - { browserName: 'firefox', platform: 'OS X 10.10' }, - { browserName: 'chrome', platform: 'linux' }, - { browserName: 'chrome', platform: 'OS X 10.9' }, - { browserName: 'chrome', platform: 'XP' }, - { browserName: 'internet explorer', platform: 'Windows 8.1', version: '11' }, - { browserName: 'internet explorer', platform: 'WIN8', version: '10' }, - { browserName: 'internet explorer', platform: 'VISTA', version: '9' }, - { browserName: 'safari', platform: 'OS X 10.6' }, - { browserName: 'safari', platform: 'OS X 10.8' }, - { browserName: 'safari', platform: 'OS X 10.9' }, - { browserName: 'safari', platform: 'OS X 10.10' }, - { browserName: 'iphone', platform: 'OS X 10.9', version: '7.1' }, - { browserName: 'android', platform: 'Linux', version: '4.4' }, - ]; - var extraBrowsers = [ - { browserName: 'firefox', platform: 'linux', version: '30' }, - { browserName: 'firefox', platform: 'linux', version: '25' }, - { browserName: 'iphone', platform: 'OS X 10.8', version: '6.1' }, - { browserName: 'iphone', platform: 'OS X 10.8', version: '5.1' }, - { browserName: 'android', platform: 'Linux', version: '4.2' }, - // XXX haven't investigated these: - // { browserName: 'opera', platform: 'Windows 7', version: '12' }, - // { browserName: 'opera', platform: 'Windows 2008', version: '12' } - // { browserName: 'iphone', platform: 'OS X 10.6', version: '4.3' }, - // { browserName: 'android', platform: 'Linux', version: '4.0' }, - ]; - if (grunt.option('extra')) { - browsers = browsers.concat(extraBrowsers); - } - grunt.initConfig({ - connect: { - server: { - options: { - base: '', - port: 9999, - useAvailablePort: true - } - } - }, - 'saucelabs-mocha': { - all: { - options: { - urls: (function () { - var urls = ['http://localhost:9999/test/']; - if (grunt.option('extra')) { - urls.push('http://localhost:9999/test-sham/'); - } - return urls; - }()), - // tunnelTimeout: 5, - build: process.env.TRAVIS_BUILD_NUMBER, - tunneled: !process.env.SAUCE_HAS_TUNNEL, - identifier: process.env.TRAVIS_JOB_NUMBER, - sauceConfig: { - 'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER - }, - // concurrency: 3, - browsers: browsers, - testname: (function () { - var testname = 'mocha'; - if (process.env.TRAVIS_PULL_REQUEST && process.env.TRAVIS_PULL_REQUEST !== 'false') { - testname += ' (PR ' + process.env.TRAVIS_PULL_REQUEST + ')'; - } - if (process.env.TRAVIS_BRANCH && process.env.TRAVIS_BRANCH !== 'false') { - testname += ' (branch ' + process.env.TRAVIS_BRANCH + ')'; - } - return testname; - }()), - tags: (function () { - var tags = []; - if (process.env.TRAVIS_PULL_REQUEST && process.env.TRAVIS_PULL_REQUEST !== 'false') { - tags.push('PR-' + process.env.TRAVIS_PULL_REQUEST); - } - if (process.env.TRAVIS_BRANCH && process.env.TRAVIS_BRANCH !== 'false') { - tags.push(process.env.TRAVIS_BRANCH); - } - return tags; - }()) - } - } - }, - watch: {} - }); - // Loading dependencies - for (var key in grunt.file.readJSON('package.json').devDependencies) { - if (key !== 'grunt' && key.indexOf('grunt') === 0) { - grunt.loadNpmTasks(key); - } - } - grunt.registerTask('dev', ['connect', 'watch']); - grunt.registerTask('sauce', ['connect', 'saucelabs-mocha']); -}; diff --git a/js/vendor/es6-shim/LICENSE b/js/vendor/es6-shim/LICENSE deleted file mode 100644 index 996ec8d6f..000000000 --- a/js/vendor/es6-shim/LICENSE +++ /dev/null @@ -1,26 +0,0 @@ -The project was initially based on [es6-shim by Axel Rauschmayer](https://github.com/rauschma/es6-shim). - -Current maintainers are: [Paul Miller](http://paulmillr.com), [Jordan Harband](https://github.com/ljharb), and [C. Scott Ananian](http://cscott.net). - -The MIT License (MIT) - -Copyright (c) 2013-2016 Paul Miller (http://paulmillr.com) and contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - diff --git a/js/vendor/es6-shim/README.md b/js/vendor/es6-shim/README.md deleted file mode 100644 index da3a2f82b..000000000 --- a/js/vendor/es6-shim/README.md +++ /dev/null @@ -1,269 +0,0 @@ -# ES6 Shim -Provides compatibility shims so that legacy JavaScript engines behave as -closely as possible to ECMAScript 6 (Harmony). - -[![Build Status][1]][2] [![dependency status][3]][4] [![dev dependency status][5]][6] - -[![browser support](https://ci.testling.com/paulmillr/es6-shim.png)](https://ci.testling.com/paulmillr/es6-shim) - -[![Sauce Test Status](https://saucelabs.com/browser-matrix/es6-shim.svg)](https://saucelabs.com/u/es6-shim) - -[HTML version of the final ECMAScript 6 spec][spec-html-url] - -## Installation -If you want to use it in browser: - -* Just include es6-shim before your scripts. -* Include [es5-shim][es5-shim-url] especially if your browser doesn't support ECMAScript 5 - but every JS engine requires the `es5-shim` to correct broken implementations, so it's strongly recommended to always include it. - -For `node.js`, `io.js`, or any `npm`-managed workflow (this is the recommended method): - - npm install es6-shim - -Alternative methods: -* `component install paulmillr/es6-shim` if you’re using [component(1)](https://github.com/componentjs/component). -* `bower install es6-shim` if you’re using [Bower](http://bower.io/). - -In both browser and node you may also want to include `unorm`; see the [`String.prototype.normalize`](#stringprototypenormalize) section for details. - -## Safe shims - -* `Map`, `Set` (requires ES5 property descriptor support) -* `Promise` -* `String`: - * `fromCodePoint()` ([a standalone shim is also available](http://mths.be/fromcodepoint)) - * `raw()` -* `String.prototype`: - * `codePointAt()` ([a standalone shim is also available](http://mths.be/codepointat)) - * `endsWith()` ([a standalone shim is also available](http://mths.be/endswith)) - * `includes()` ([a standalone shim is also available](http://mths.be/includes)) - * `repeat()` ([a standalone shim is also available](http://mths.be/repeat)) - * `startsWith()` ([a standalone shim is also available](http://mths.be/startswith)) -* `RegExp`: - * `new RegExp`, when given a RegExp as the pattern, will no longer throw when given a "flags" string argument. (requires ES5) -* `RegExp.prototype`: - * `flags` (requires ES5) ([a standalone shim is also available](https://github.com/es-shims/RegExp.prototype.flags)) - * `[Symbol.match]` (requires native `Symbol`s) - * `[Symbol.replace]` (requires native `Symbol`s) - * `[Symbol.search]` (requires native `Symbol`s) - * `[Symbol.split]` (requires native `Symbol`s) - * `toString` -* `Number`: - * binary and octal literals: `Number('0b1')` and `Number('0o7')` - * `EPSILON` - * `MAX_SAFE_INTEGER` - * `MIN_SAFE_INTEGER` - * `isNaN()`([a standalone shim is also available](https://www.npmjs.com/package/is-nan)) - * `isInteger()` - * `isSafeInteger()` - * `isFinite()` - * `parseInt()` - * `parseFloat()` -* `Array`: - * `from()` ([a standalone shim is also available](https://www.npmjs.com/package/array.from)) - * `of()` ([a standalone shim is also available](https://www.npmjs.com/package/array.of)) -* `Array.prototype`: - * `copyWithin()` - * `entries()` - * `fill()` - * `find()` ([a standalone shim is also available](https://github.com/paulmillr/Array.prototype.find)) - * `findIndex()` ([a standalone shim is also available](https://github.com/paulmillr/Array.prototype.findIndex)) - * `keys()` (note: keys/values/entries return an `ArrayIterator` object) - * `values()` - * `indexOf()` (ES6 errata) -* `Object`: - * `assign()` ([a standalone shim is also available](https://github.com/ljharb/object.assign)) - * `is()` ([a standalone shim is also available](https://github.com/ljharb/object-is)) - * `keys()` (in ES5, but no longer throws on non-object non-null/undefined values in ES6) - * `setPrototypeOf()` (IE >= 11) -* `Function.prototype`: - * `name` (es6-sham, covers IE 9-11) -* `Math`: - * `acosh()` - * `asinh()` - * `atanh()` - * `cbrt()` - * `clz32()` - * `cosh()` - * `expm1()` - * `fround()` - * `hypot()` - * `imul()` - * `log10()` - * `log1p()` - * `log2()` - * `sign()` - * `sinh()` - * `tanh()` - * `trunc()` - -Math functions’ accuracy is 1e-11. - -* `Reflect` - * `apply()` - * `construct()` - * `defineProperty()` - * `deleteProperty()` - * `get()` - * `getOwnPropertyDescriptor()` - * `getPrototypeOf()` - * `has()` - * `isExtensible()` - * `ownKeys()` - * `preventExtensions()` - * `set()` - * `setPrototypeOf()` - -* `Symbol` (only if it already exists) - * `match` (and corresponding `String#match`, `String#startsWith`, `String#endsWith`, `String#includes`, `RegExp` support) - * `replace` (and corresponding `String#replace` support) - * `search` (and corresponding `String#search` support) - * `split` (and corresponding `String#split` support) - -Well-known symbols will only be provided if the engine already has `Symbol` support. - -* `String.prototype` Annex B HTML methods - * `anchor()` - * `big()` - * `blink()` - * `bold()` - * `fixed()` - * `fontcolor()` - * `fontsize()` - * `italics()` - * `link()` - * `small()` - * `strike()` - * `sub()` - * `sup()` - -These methods are part of "Annex B", which means that although they are a defacto standard, you shouldn't use them. None the less, the `es6-shim` provides them and normalizes their behavior across browsers. - -## Subclassing -The `Map`, `Set`, and `Promise` implementations are subclassable. -You should use the following pattern to create a subclass in ES5 which will continue to work in ES6: -```javascript -require('es6-shim'); - -function MyPromise(exec) { - var promise = new Promise(exec); - Object.setPrototypeOf(promise, MyPromise.prototype); - // ... - return promise; -} -Object.setPrototypeOf(MyPromise, Promise); -MyPromise.prototype = Object.create(Promise.prototype, { - constructor: { value: MyPromise } -}); -``` - -## String.prototype.normalize -Including a proper shim for `String.prototype.normalize` would increase the size of this library by a factor of more than 4. -So instead we recommend that you install the [`unorm`](https://github.com/walling/unorm) package alongside `es6-shim` if you need `String.prototype.normalize`. -See https://github.com/paulmillr/es6-shim/issues/134 for more discussion. - - -## WeakMap shim -It is not possible to implement WeakMap in pure javascript. -The [es6-collections](https://github.com/WebReflection/es6-collections) implementation doesn't hold values strongly, which is critical for the collection. `es6-shim` decided to not include an incorrect shim. - -`WeakMap` has very unusual use-cases, so you probably won't need it at all (use simple `Map` instead). - -## Getting started - -```javascript -require('es6-shim'); -var assert = require('assert'); - -assert.equal(true, 'abc'.startsWith('a')); -assert.equal(false, 'abc'.endsWith('a')); -assert.equal(true, 'john alice'.includes('john')); -assert.equal('123'.repeat(2), '123123'); - -assert.equal(false, NaN === NaN); -assert.equal(true, Object.is(NaN, NaN)); -assert.equal(true, -0 === 0); -assert.equal(false, Object.is(-0, 0)); - -var result = Object.assign({ a: 1 }, { b: 2 }); -assert.deepEqual(result, { a: 1, b: 2 }); - -assert.equal(true, isNaN('a')); -assert.equal(false, Number.isNaN('a')); -assert.equal(true, Number.isNaN(NaN)); - -assert.equal(true, isFinite('123')); -assert.equal(false, Number.isFinite('123')); -assert.equal(false, Number.isFinite(Infinity)); - -// Tests if value is a number, finite, -// >= -9007199254740992 && <= 9007199254740992 and floor(value) === value -assert.equal(false, Number.isInteger(2.4)); - -assert.equal(1, Math.sign(400)); -assert.equal(0, Math.sign(0)); -assert.equal(-1, Math.sign(-400)); - -var found = [5, 10, 15, 10].find(function (item) { return item / 2 === 5; }); -assert.equal(10, found); - -var foundIndex = [5, 10, 15, 10].findIndex(function (item) { return item / 2 === 5; }); -assert.equal(1, foundIndex); - -// Replacement for `{}` key-value storage. -// Keys can be anything. -var map = new Map([['Bob', 42], ['Foo', 'bar']]); -map.set('John', 25); -map.set('Alice', 400); -map.set(['meh'], 555); -assert.equal(undefined, map.get(['meh'])); // undefined because you need to use exactly the same object. -map.delete('Alice'); -map.keys(); -map.values(); -assert.equal(4, map.size); - -// Useful for storing unique items. -var set = new Set([0, 1]); -set.add(2); -set.add(5); -assert.equal(true, set.has(0)); -assert.equal(true, set.has(1)); -assert.equal(true, set.has(2)); -assert.equal(false, set.has(4)); -assert.equal(true, set.has(5)); -set.delete(5); -assert.equal(false, set.has(5)); - -// Promises, see -// http://www.slideshare.net/domenicdenicola/callbacks-promises-and-coroutines-oh-my-the-evolution-of-asynchronicity-in-javascript -// https://github.com/petkaantonov/bluebird/#what-are-promises-and-why-should-i-use-them -Promise.resolve(5).then(function (value) { - assert.equal(value, 5); - if (value) throw new Error('whoops!'); - // do some stuff - return anotherPromise(); -}).catch(function (e) { - assert.equal(e.message, 'whoops!'); - assert.equal(true, e instanceof Error); - // any errors thrown asynchronously end up here -}); -``` - -## Caveats - - - `Object.setPrototypeOf` / `Reflect.setPrototypeOf` - - Note that null objects (`Object.create(null)`, eg, an object with `null` as its `[[Prototype]]`) can not have their `[[Prototype]]` changed except via a native `Object.setPrototypeOf`. - - Well-known `Symbol`s - - In order to make them work cross-realm, these are created with the global `Symbol` registry via `Symbol.for`. This does not violate the spec, but it does mean that `Symbol.for('Symbol.search') === Symbol.search` will be `true`, which it would not by default in a fresh compliant realm. - -## [License][license-url] - -[1]: https://travis-ci.org/paulmillr/es6-shim.svg -[2]: https://travis-ci.org/paulmillr/es6-shim -[3]: https://david-dm.org/paulmillr/es6-shim.svg -[4]: https://david-dm.org/paulmillr/es6-shim -[5]: https://david-dm.org/paulmillr/es6-shim/dev-status.svg -[6]: https://david-dm.org/paulmillr/es6-shim#info=devDependencies -[license-url]: https://github.com/paulmillr/es6-shim/blob/master/LICENSE -[spec-html-url]: http://www.ecma-international.org/ecma-262/6.0/ -[es5-shim-url]: https://github.com/es-shims/es5-shim diff --git a/js/vendor/es6-shim/bower.json b/js/vendor/es6-shim/bower.json deleted file mode 100644 index 231768dee..000000000 --- a/js/vendor/es6-shim/bower.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "es6-shim", - "repo": "paulmillr/es6-shim", - "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines", - "keywords": [ - "ecmascript", - "harmony", - "es6", - "shim", - "promise", - "promises", - "setPrototypeOf", - "map", - "set", - "__proto__" - ], - "main": "es6-shim.js", - "scripts": ["es6-shim.js"], - "dependencies": {}, - "development": {}, - "ignore": [ - "**/.*", - "node_modules", - "components", - "test" - ] -} - diff --git a/js/vendor/es6-shim/component.json b/js/vendor/es6-shim/component.json deleted file mode 100644 index 14307f922..000000000 --- a/js/vendor/es6-shim/component.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "name": "es6-shim", - "version": "0.35.0", - "repo": "paulmillr/es6-shim", - "description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines", - "keywords": [ - "ecmascript", - "harmony", - "es6", - "shim", - "promise", - "promises", - "setPrototypeOf", - "map", - "set", - "__proto__" - ], - "main": "es6-shim.js", - "scripts": ["es6-shim.js"], - "dependencies": {}, - "development": {} -} - diff --git a/js/vendor/es6-shim/es6-sham.js b/js/vendor/es6-shim/es6-sham.js deleted file mode 100644 index ec8025a54..000000000 --- a/js/vendor/es6-shim/es6-sham.js +++ /dev/null @@ -1,168 +0,0 @@ - /*! - * https://github.com/paulmillr/es6-shim - * @license es6-shim Copyright 2013-2016 by Paul Miller (http://paulmillr.com) - * and contributors, MIT License - * es6-sham: v0.35.0 - * see https://github.com/paulmillr/es6-shim/blob/0.35.0/LICENSE - * Details and documentation: - * https://github.com/paulmillr/es6-shim/ - */ - -// UMD (Universal Module Definition) -// see https://github.com/umdjs/umd/blob/master/returnExports.js -(function (root, factory) { - /*global define, exports, module */ - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(factory); - } else if (typeof exports === 'object') { - // Node. Does not work with strict CommonJS, but - // only CommonJS-like environments that support module.exports, - // like Node. - module.exports = factory(); - } else { - // Browser globals (root is window) - root.returnExports = factory(); - } -}(this, function () { - 'use strict'; - - /*jshint evil: true */ - /* eslint-disable no-new-func */ - var getGlobal = new Function('return this;'); - /* eslint-enable no-new-func */ - /*jshint evil: false */ - - var globals = getGlobal(); - var Object = globals.Object; - var _call = Function.call.bind(Function.call); - var functionToString = Function.toString; - var _strMatch = String.prototype.match; - - var throwsError = function (func) { - try { - func(); - return false; - } catch (e) { - return true; - } - }; - var arePropertyDescriptorsSupported = function () { - // if Object.defineProperty exists but throws, it's IE 8 - return !throwsError(function () { Object.defineProperty({}, 'x', { get: function () {} }); }); - }; - var supportsDescriptors = !!Object.defineProperty && arePropertyDescriptorsSupported(); - - // NOTE: This versions needs object ownership - // because every promoted object needs to be reassigned - // otherwise uncompatible browsers cannot work as expected - // - // NOTE: This might need es5-shim or polyfills upfront - // because it's based on ES5 API. - // (probably just an IE <= 8 problem) - // - // NOTE: nodejs is fine in version 0.8, 0.10, and future versions. - (function () { - if (Object.setPrototypeOf) { return; } - - /*jshint proto: true */ - // @author Andrea Giammarchi - @WebReflection - - var getOwnPropertyNames = Object.getOwnPropertyNames; - var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - var create = Object.create; - var defineProperty = Object.defineProperty; - var getPrototypeOf = Object.getPrototypeOf; - var objProto = Object.prototype; - - var copyDescriptors = function (target, source) { - // define into target descriptors from source - getOwnPropertyNames(source).forEach(function (key) { - defineProperty( - target, - key, - getOwnPropertyDescriptor(source, key) - ); - }); - return target; - }; - // used as fallback when no promotion is possible - var createAndCopy = function (origin, proto) { - return copyDescriptors(create(proto), origin); - }; - var set, setPrototypeOf; - try { - // this might fail for various reasons - // ignore if Chrome cought it at runtime - set = getOwnPropertyDescriptor(objProto, '__proto__').set; - set.call({}, null); - // setter not poisoned, it can promote - // Firefox, Chrome - setPrototypeOf = function (origin, proto) { - set.call(origin, proto); - return origin; - }; - } catch (e) { - // do one or more feature detections - set = { __proto__: null }; - // if proto does not work, needs to fallback - // some Opera, Rhino, ducktape - if (set instanceof Object) { - setPrototypeOf = createAndCopy; - } else { - // verify if null objects are buggy - /* eslint-disable no-proto */ - set.__proto__ = objProto; - /* eslint-enable no-proto */ - // if null objects are buggy - // nodejs 0.8 to 0.10 - if (set instanceof Object) { - setPrototypeOf = function (origin, proto) { - // use such bug to promote - /* eslint-disable no-proto */ - origin.__proto__ = proto; - /* eslint-enable no-proto */ - return origin; - }; - } else { - // try to use proto or fallback - // Safari, old Firefox, many others - setPrototypeOf = function (origin, proto) { - // if proto is not null - if (getPrototypeOf(origin)) { - // use __proto__ to promote - /* eslint-disable no-proto */ - origin.__proto__ = proto; - /* eslint-enable no-proto */ - return origin; - } else { - // otherwise unable to promote: fallback - return createAndCopy(origin, proto); - } - }; - } - } - } - Object.setPrototypeOf = setPrototypeOf; - }()); - - if (supportsDescriptors && function foo() {}.name !== 'foo') { - /* eslint no-extend-native: 1 */ - Object.defineProperty(Function.prototype, 'name', { - configurable: true, - enumerable: false, - get: function () { - var str = _call(functionToString, this); - var match = _call(_strMatch, str, /\s*function\s+([^\(\s]*)\s*/); - var name = match && match[1]; - Object.defineProperty(this, 'name', { - configurable: true, - enumerable: false, - writable: false, - value: name - }); - return name; - } - }); - } -})); diff --git a/js/vendor/es6-shim/es6-sham.map b/js/vendor/es6-shim/es6-sham.map deleted file mode 100644 index dbca58689..000000000 --- a/js/vendor/es6-shim/es6-sham.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["es6-sham.js"],"names":["root","factory","define","amd","exports","module","returnExports","this","getGlobal","Function","globals","Object","_call","call","bind","functionToString","toString","_strMatch","String","prototype","match","throwsError","func","e","arePropertyDescriptorsSupported","defineProperty","get","supportsDescriptors","setPrototypeOf","getOwnPropertyNames","getOwnPropertyDescriptor","create","getPrototypeOf","objProto","copyDescriptors","target","source","forEach","key","createAndCopy","origin","proto","set","__proto__","foo","name","configurable","enumerable","str","writable","value"],"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,YAIA,IAAIC,GAAY,GAAIC,UAAS,eAI7B,IAAIC,GAAUF,GACd,IAAIG,GAASD,EAAQC,MACrB,IAAIC,GAAQH,SAASI,KAAKC,KAAKL,SAASI,KACxC,IAAIE,GAAmBN,SAASO,QAChC,IAAIC,GAAYC,OAAOC,UAAUC,KAEjC,IAAIC,GAAc,SAAUC,GAC1B,IACEA,GACA,OAAO,OACP,MAAOC,GACP,MAAO,OAGX,IAAIC,GAAkC,WAEpC,OAAQH,EAAY,WAAcV,EAAOc,kBAAmB,KAAOC,IAAK,iBAE1E,IAAIC,KAAwBhB,EAAOc,gBAAkBD,KAWpD,WACC,GAAIb,EAAOiB,eAAgB,CAAE,OAK7B,GAAIC,GAAsBlB,EAAOkB,mBACjC,IAAIC,GAA2BnB,EAAOmB,wBACtC,IAAIC,GAASpB,EAAOoB,MACpB,IAAIN,GAAiBd,EAAOc,cAC5B,IAAIO,GAAiBrB,EAAOqB,cAC5B,IAAIC,GAAWtB,EAAOQ,SAEtB,IAAIe,GAAkB,SAAUC,EAAQC,GAEtCP,EAAoBO,GAAQC,QAAQ,SAAUC,GAC5Cb,EACEU,EACAG,EACAR,EAAyBM,EAAQE,KAGrC,OAAOH,GAGT,IAAII,GAAgB,SAAUC,EAAQC,GACpC,MAAOP,GAAgBH,EAAOU,GAAQD,GAExC,IAAIE,GAAKd,CACT,KAGEc,EAAMZ,EAAyBG,EAAU,aAAaS,GACtDA,GAAI7B,QAAS,KAGbe,GAAiB,SAAUY,EAAQC,GACjCC,EAAI7B,KAAK2B,EAAQC,EACjB,OAAOD,IAET,MAAOjB,GAEPmB,GAAQC,UAAW,KAGnB,IAAID,YAAe/B,GAAQ,CACzBiB,EAAiBW,MACZ,CAGLG,EAAIC,UAAYV,CAIhB,IAAIS,YAAe/B,GAAQ,CACzBiB,EAAiB,SAAUY,EAAQC,GAGjCD,EAAOG,UAAYF,CAEnB,OAAOD,QAEJ,CAGLZ,EAAiB,SAAUY,EAAQC,GAEjC,GAAIT,EAAeQ,GAAS,CAG1BA,EAAOG,UAAYF,CAEnB,OAAOD,OACF,CAEL,MAAOD,GAAcC,EAAQC,OAMvC9B,EAAOiB,eAAiBA,KAG1B,IAAID,GAAuB,QAASiB,SAASC,OAAS,MAAO,CAE3DlC,EAAOc,eAAehB,SAASU,UAAW,QACxC2B,aAAc,KACdC,WAAY,MACZrB,IAAK,WACH,GAAIsB,GAAMpC,EAAMG,EAAkBR,KAClC,IAAIa,GAAQR,EAAMK,EAAW+B,EAAK,8BAClC,IAAIH,GAAOzB,GAASA,EAAM,EAC1BT,GAAOc,eAAelB,KAAM,QAC1BuC,aAAc,KACdC,WAAY,MACZE,SAAU,MACVC,MAAOL,GAET,OAAOA"} \ No newline at end of file diff --git a/js/vendor/es6-shim/es6-sham.min.js b/js/vendor/es6-shim/es6-sham.min.js deleted file mode 100644 index d8d3c36b7..000000000 --- a/js/vendor/es6-shim/es6-sham.min.js +++ /dev/null @@ -1,11 +0,0 @@ -/*! - * https://github.com/paulmillr/es6-shim - * @license es6-shim Copyright 2013-2016 by Paul Miller (http://paulmillr.com) - * and contributors, MIT License - * es6-sham: v0.35.0 - * see https://github.com/paulmillr/es6-shim/blob/0.35.0/LICENSE - * Details and documentation: - * https://github.com/paulmillr/es6-shim/ - */ -(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 a=function(){return!f(function(){r.defineProperty({},"x",{get:function(){}})})};var u=!!r.defineProperty&&a();(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 a=function(r,n){t(n).forEach(function(t){o(r,t,e(n,t))});return r};var u=function(t,e){return a(n(e),t)};var c,s;try{c=e(f,"__proto__").set;c.call({},null);s=function(t,e){c.call(t,e);return t}}catch(l){c={__proto__:null};if(c instanceof r){s=u}else{c.__proto__=f;if(c instanceof r){s=function(t,e){t.__proto__=e;return t}}else{s=function(t,e){if(i(t)){t.__proto__=e;return t}else{return u(t,e)}}}}}r.setPrototypeOf=s})();if(u&&function foo(){}.name!=="foo"){r.defineProperty(Function.prototype,"name",{configurable:true,enumerable:false,get:function(){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}})}}); -//# sourceMappingURL=es6-sham.map diff --git a/js/vendor/es6-shim/es6-shim.js b/js/vendor/es6-shim/es6-shim.js deleted file mode 100644 index 1f49f68d0..000000000 --- a/js/vendor/es6-shim/es6-shim.js +++ /dev/null @@ -1,3738 +0,0 @@ - /*! - * https://github.com/paulmillr/es6-shim - * @license es6-shim Copyright 2013-2016 by Paul Miller (http://paulmillr.com) - * and contributors, MIT License - * es6-shim: v0.35.0 - * see https://github.com/paulmillr/es6-shim/blob/0.35.0/LICENSE - * Details and documentation: - * https://github.com/paulmillr/es6-shim/ - */ - -// UMD (Universal Module Definition) -// see https://github.com/umdjs/umd/blob/master/returnExports.js -(function (root, factory) { - /*global define, module, exports */ - if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. - define(factory); - } else if (typeof exports === 'object') { - // Node. Does not work with strict CommonJS, but - // only CommonJS-like environments that support module.exports, - // like Node. - module.exports = factory(); - } else { - // Browser globals (root is window) - root.returnExports = factory(); - } -}(this, function () { - 'use strict'; - - var _apply = Function.call.bind(Function.apply); - var _call = Function.call.bind(Function.call); - var isArray = Array.isArray; - var keys = Object.keys; - - var not = function notThunker(func) { - return function notThunk() { return !_apply(func, this, arguments); }; - }; - var throwsError = function (func) { - try { - func(); - return false; - } catch (e) { - return true; - } - }; - var valueOrFalseIfThrows = function valueOrFalseIfThrows(func) { - try { - return func(); - } catch (e) { - return false; - } - }; - - var isCallableWithoutNew = not(throwsError); - var arePropertyDescriptorsSupported = function () { - // if Object.defineProperty exists but throws, it's IE 8 - return !throwsError(function () { Object.defineProperty({}, 'x', { get: function () {} }); }); - }; - var supportsDescriptors = !!Object.defineProperty && arePropertyDescriptorsSupported(); - var functionsHaveNames = (function foo() {}).name === 'foo'; - - var _forEach = Function.call.bind(Array.prototype.forEach); - var _reduce = Function.call.bind(Array.prototype.reduce); - var _filter = Function.call.bind(Array.prototype.filter); - var _some = Function.call.bind(Array.prototype.some); - - var defineProperty = function (object, name, value, force) { - if (!force && name in object) { return; } - if (supportsDescriptors) { - Object.defineProperty(object, name, { - configurable: true, - enumerable: false, - writable: true, - value: value - }); - } else { - object[name] = value; - } - }; - - // Define configurable, writable and non-enumerable props - // if they don’t exist. - var defineProperties = function (object, map, forceOverride) { - _forEach(keys(map), function (name) { - var method = map[name]; - defineProperty(object, name, method, !!forceOverride); - }); - }; - - var _toString = Function.call.bind(Object.prototype.toString); - var isCallable = typeof /abc/ === 'function' ? function IsCallableSlow(x) { - // Some old browsers (IE, FF) say that typeof /abc/ === 'function' - return typeof x === 'function' && _toString(x) === '[object Function]'; - } : function IsCallableFast(x) { return typeof x === 'function'; }; - - var Value = { - getter: function (object, name, getter) { - if (!supportsDescriptors) { - throw new TypeError('getters require true ES5 support'); - } - Object.defineProperty(object, name, { - configurable: true, - enumerable: false, - get: getter - }); - }, - proxy: function (originalObject, key, targetObject) { - if (!supportsDescriptors) { - throw new TypeError('getters require true ES5 support'); - } - var originalDescriptor = Object.getOwnPropertyDescriptor(originalObject, key); - Object.defineProperty(targetObject, key, { - configurable: originalDescriptor.configurable, - enumerable: originalDescriptor.enumerable, - get: function getKey() { return originalObject[key]; }, - set: function setKey(value) { originalObject[key] = value; } - }); - }, - redefine: function (object, property, newValue) { - if (supportsDescriptors) { - var descriptor = Object.getOwnPropertyDescriptor(object, property); - descriptor.value = newValue; -