diff options
author | silverwind <me@silverwind.io> | 2016-04-09 14:11:01 +0200 |
---|---|---|
committer | silverwind <me@silverwind.io> | 2016-04-10 11:46:08 +0200 |
commit | 2f6ff1bb64ac4f3e201039c8e83f8eb95f73c769 (patch) | |
tree | 710fe0778ca523281965244fdca60c4a031980e6 /tools/eslint/node_modules/es5-ext | |
parent | 8f4fdc93f07a06a62d4f867c6e0fd2f6287bb8be (diff) | |
download | node-new-2f6ff1bb64ac4f3e201039c8e83f8eb95f73c769.tar.gz |
tools: update ESLint to 2.7.0
PR-URL: https://github.com/nodejs/node/pull/6132
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: thefourtheye <thechargingvolcano@gmail.com>
Diffstat (limited to 'tools/eslint/node_modules/es5-ext')
369 files changed, 16 insertions, 4300 deletions
diff --git a/tools/eslint/node_modules/es5-ext/.npmignore b/tools/eslint/node_modules/es5-ext/.npmignore deleted file mode 100644 index eb09b500d6..0000000000 --- a/tools/eslint/node_modules/es5-ext/.npmignore +++ /dev/null @@ -1,4 +0,0 @@ -.DS_Store -/node_modules -/.lintcache -/npm-debug.log diff --git a/tools/eslint/node_modules/es5-ext/.travis.yml b/tools/eslint/node_modules/es5-ext/.travis.yml deleted file mode 100644 index e8e18ee77d..0000000000 --- a/tools/eslint/node_modules/es5-ext/.travis.yml +++ /dev/null @@ -1,15 +0,0 @@ -sudo: false # http://docs.travis-ci.com/user/workers/container-based-infrastructure/ -language: node_js -node_js: - - 0.12 - - 4 - - 5 - -before_install: - - mkdir node_modules; ln -s ../ node_modules/es5-ext - -notifications: - email: - - medikoo+es5-ext@medikoo.com - -script: "npm test && npm run lint" diff --git a/tools/eslint/node_modules/es5-ext/CHANGES b/tools/eslint/node_modules/es5-ext/CHANGES deleted file mode 100644 index 92ee5f6ef6..0000000000 --- a/tools/eslint/node_modules/es5-ext/CHANGES +++ /dev/null @@ -1,628 +0,0 @@ -v0.10.11 -- 2015.12.18 -* Ensure that check for implementation of RegExp flags doesn't crash in V8 (thanks @mathiasbynens) - -v0.10.10 -- 2015.12.11 -* Add Object.isNumberValue util - -v0.10.9 -- 2015.12.01 -* Add Object.ensureNaturalNumber and Object.ensureNaturalNumberValue - -v0.10.8 -- 2015.10.02 -* Add Number.isNatural -* Add Object.find and Object.findKey -* Support arrays in Object.copyDeep -* Fix iteration issue in forEachRight and someRight -* Fix detection of native sinh -* Depend on es6-symbol v3 - -v0.10.7 -- 2015.04.22 -* New utlitities. They're convention differs from v0.10, as they were supposed to land in v1. - Still they're non breaking and start the conventions to be used in v1 - * Object.validateArrayLike - * Object.validateArrayLikeObject - * Object.validateStringifiable - * Object.validateStringifiableValue - * Universal utilities for array-like/iterable objects - * Iterable.is - * Iterable.validate - * Iterable.validateObject - * Iterable.forEach -* Fix camelToHyphen resolution, it must be absolutely reversable by hyphenToCamel -* Fix calculations of large numbers in Math.tanh -* Fix algorithm of Math.sinh -* Fix indexes to not use real symbols -* Fix length of String.fromCodePoint -* Fix tests of Array#copyWithin -* Update Travis CI configuration - -v0.10.6 -- 2015.02.02 -* Fix handling of infinite values in Math.trunc -* Fix handling of getters in Object.normalizeOptions - -v0.10.5 -- 2015.01.20 -* Add Function#toStringTokens -* Add Object.serialize and Object.unserialize -* Add String.randomUniq -* Fix Strin#camelToHyphen issue with tokens that end with digit -* Optimise Number.isInteger logic -* Improve documentation -* Configure lint scripts -* Fix spelling of LICENSE - -v0.10.4 -- 2014.04.30 -* Assure maximum spec compliance of Array.of and Array.from (thanks @mathiasbynens) -* Improve documentations - -v0.10.3 -- 2014.04.29 -Provide accurate iterators handling: -* Array.from improvements: - * Assure right unicode symbols resolution when processing strings in Array.from - * Rely on ES6 symbol shim and use native @@iterator Symbol if provided by environment -* Add methods: - * Array.prototype.entries - * Array.prototype.keys - * Array.prototype.values - * Array.prototype[@@iterator] - * String.prototype[@@iterator] - -Improve documentation - -v0.10.2 -- 2014.04.24 -- Simplify and deprecate `isCallable`. It seems in ES5 based engines there are - no callable objects which are `typeof obj !== 'function'` -- Update Array.from map callback signature (up to latest resolution of TC39) -- Improve documentation - -v0.10.1 -- 2014.04.14 -Bump version for npm -(Workaround for accidental premature publish & unpublish of v0.10.0 a while ago) - -v0.10.0 -- 2014.04.13 -Major update: -- All methods and function specified for ECMAScript 6 are now introduced as - shims accompanied with functions through which (optionally) they can be - implementend on native objects -- Filename convention was changed to shorter and strictly lower case names. e.g. - `lib/String/prototype/starts-with` became `string/#/starts-with` -- Generated functions are guaranteed to have expected length -- Objects with null prototype (created via `Object.create(null)`) are widely - supported (older version have crashed due to implied `obj.hasOwnProperty` and - related invocations) -- Support array subclasses -- When handling lists do not limit its length to Uint32 range -- Use newly introduced `Object.eq` for strict equality in place of `Object.is` -- Iteration of Object have been improved so properties that were hidden or - removed after iteration started are not iterated. - -Additions: -- `Array.isPlainArray` -- `Array.validArray` -- `Array.prototype.concat` (as updated with ES6) -- `Array.prototype.copyWithin` (as introduced with ES6) -- `Array.prototype.fill` (as introduced with ES6) -- `Array.prototype.filter` (as updated with ES6) -- `Array.prototype.findIndex` (as introduced with ES6) -- `Array.prototype.map` (as updated with ES6) -- `Array.prototype.separate` -- `Array.prototype.slice` (as updated with ES6) -- `Array.prototype.splice` (as updated with ES6) -- `Function.prototype.copy` -- `Math.acosh` (as introduced with ES6) -- `Math.atanh` (as introduced with ES6) -- `Math.cbrt` (as introduced with ES6) -- `Math.clz32` (as introduced with ES6) -- `Math.cosh` (as introduced with ES6) -- `Math.expm1` (as introduced with ES6) -- `Math.fround` (as introduced with ES6) -- `Math.hypot` (as introduced with ES6) -- `Math.imul` (as introduced with ES6) -- `Math.log2` (as introduced with ES6) -- `Math.log10` (as introduced with ES6) -- `Math.log1p` (as introduced with ES6) -- `Math.sinh` (as introduced with ES6) -- `Math.tanh` (as introduced with ES6) -- `Math.trunc` (as introduced with ES6) -- `Number.EPSILON` (as introduced with ES6) -- `Number.MIN_SAFE_INTEGER` (as introduced with ES6) -- `Number.MAX_SAFE_INTEGER` (as introduced with ES6) -- `Number.isFinite` (as introduced with ES6) -- `Number.isInteger` (as introduced with ES6) -- `Number.isSafeInteger` (as introduced with ES6) -- `Object.create` (with fix for V8 issue which disallows prototype turn of - objects derived from null -- `Object.eq` - Less restrictive version of `Object.is` based on SameValueZero - algorithm -- `Object.firstKey` -- `Object.keys` (as updated with ES6) -- `Object.mixinPrototypes` -- `Object.primitiveSet` -- `Object.setPrototypeOf` (as introduced with ES6) -- `Object.validObject` -- `RegExp.escape` -- `RegExp.prototype.match` (as introduced with ES6) -- `RegExp.prototype.replace` (as introduced with ES6) -- `RegExp.prototype.search` (as introduced with ES6) -- `RegExp.prototype.split` (as introduced with ES6) -- `RegExp.prototype.sticky` (as introduced with ES6) -- `RegExp.prototype.unicode` (as introduced with ES6) -- `String.fromCodePoint` (as introduced with ES6) -- `String.raw` (as introduced with ES6) -- `String.prototype.at` -- `String.prototype.codePointAt` (as introduced with ES6) -- `String.prototype.normalize` (as introduced with ES6) -- `String.prototype.plainReplaceAll` - -Removals: -- `reserved` set -- `Array.prototype.commonLeft` -- `Function.insert` -- `Function.remove` -- `Function.prototype.silent` -- `Function.prototype.wrap` -- `Object.descriptor` Move to external `d` project. - See: https://github.com/medikoo/d -- `Object.diff` -- `Object.extendDeep` -- `Object.reduce` -- `Object.values` -- `String.prototype.trimCommonLeft` - -Renames: -- `Function.i` into `Function.identity` -- `Function.k` into `Function.constant` -- `Number.toInt` into `Number.toInteger` -- `Number.toUint` into `Number.toPosInteger` -- `Object.extend` into `Object.assign` (as introduced in ES 6) -- `Object.extendProperties` into `Object.mixin`, with improved internal - handling, so it matches temporarily specified `Object.mixin` for ECMAScript 6 -- `Object.isList` into `Object.isArrayLike` -- `Object.mapToArray` into `Object.toArray` (with fixed function length) -- `Object.toPlainObject` into `Object.normalizeOptions` (as this is the real - use case where we use this function) -- `Function.prototype.chain` into `Function.prototype.compose` -- `Function.prototype.match` into `Function.prototype.spread` -- `String.prototype.format` into `String.formatMethod` - -Improvements & Fixes: -- Remove workaround for primitive values handling in object iterators -- `Array.from`: Update so it follows ES 6 spec -- `Array.prototype.compact`: filters just null and undefined values - (not all falsies) -- `Array.prototype.eIndexOf` and `Array.prototype.eLastIndexOf`: fix position - handling, improve internals -- `Array.prototype.find`: return undefined not null, in case of not found - (follow ES 6) -- `Array.prototype.remove` fix function length -- `Error.custom`: simplify, Custom class case is addressed by outer - `error-create` project -> https://github.com/medikoo/error-create -- `Error.isError` true only for Error instances (remove detection of host - Exception objects) -- `Number.prototype.pad`: Normalize negative pad -- `Object.clear`: Handle errors same way as in `Object.assign` -- `Object.compact`: filters just null and undefined values (not all falsies) -- `Object.compare`: Take into account NaN values -- `Object.copy`: Split into `Object.copy` and `Object.copyDeep` -- `Object.isCopy`: Separate into `Object.isCopy` and `Object.isCopyDeep`, where - `isCopyDeep` handles nested plain objects and plain arrays only -- `String.prototype.endsWith`: Adjust up to ES6 specification -- `String.prototype.repeat`: Adjust up to ES6 specification and improve algorithm -- `String.prototype.simpleReplace`: Rename into `String.prototype.plainReplace` -- `String.prototype.startsWith`: Adjust up to ES6 specification -- Update lint rules, and adjust code to that -- Update Travis CI configuration -- Remove Makefile (it's cross-env utility) - -v0.9.2 -- 2013.03.11 -Added: -* Array.prototype.isCopy -* Array.prototype.isUniq -* Error.CustomError -* Function.validFunction -* Object.extendDeep -* Object.descriptor.binder -* Object.safeTraverse -* RegExp.validRegExp -* String.prototype.capitalize -* String.prototype.simpleReplace - -Fixed: -* Fix Array.prototype.diff for sparse arrays -* Accept primitive objects as input values in Object iteration methods and - Object.clear, Object.count, Object.diff, Object.extend, - Object.getPropertyNames, Object.values -* Pass expected arguments to callbacks of Object.filter, Object.mapKeys, - Object.mapToArray, Object.map -* Improve callable callback support in Object.mapToArray - -v0.9.1 -- 2012.09.17 -* Object.reduce - reduce for hash-like collections -* Accapt any callable object as callback in Object.filter, mapKeys and map -* Convention cleanup - -v0.9.0 -- 2012.09.13 -We're getting to real solid API - -Removed: -* Function#memoize - it's grown up to be external package, to be soon published - as 'memoizee' -* String.guid - it doesn't fit es5-ext (extensions) concept, will be provided as - external package -# Function.arguments - obsolete -# Function.context - obsolete -# Function#flip - not readable when used, so it was never used -# Object.clone - obsolete and confusing - -Added: -* String#camelToHyphen - String format convertion - -Renamed: -* String#dashToCamelCase -> String#hyphenToCamel - -Fixes: -* Object.isObject - Quote names in literals that match reserved keywords - (older implementations crashed on that) -* String#repeat - Do not accept negative values (coerce them to 1) - -Improvements: -* Array#remove - Accepts many arguments, we can now remove many values at once -* Object iterators (forEach, map, some) - Compare function invoked with scope - object bound to this -* Function#curry - Algorithm cleanup -* Object.isCopy - Support for all types, not just plain objects -* Object.isPlainObject - Support for cross-frame objects -* Do not memoize any of the functions, it shouldn't be decided internally -* Remove Object.freeze calls in reserved, it's not up to convention -* Improved documentation -* Better linting (hard-core approach using both JSLint mod and JSHint) -* Optional arguments are now documented in funtions signature - -v0.8.2 -- 2012.06.22 -Fix errors in Array's intersection and exclusion methods, related to improper -usage of contains method - -v0.8.1 -- 2012.06.13 -Reorganized internal logic of Function.prototype.memoize. So it's more safe now -and clears cache properly. Additionally preventCache option was provided. - -v0.8.0 -- 2012.05.28 -Again, major overhaul. Probably last experimental stuff was trashed, all API -looks more like standard extensions now. - -Changes: -* Turn all Object.prototype extensions into functions and move them to Object -namespace. We learned that extending Object.prototype is bad idea in any case. -* Rename Function.prototype.curry into Function.prototype.partial. This function - is really doing partial application while currying is slightly different - concept. -* Convert Function.prototype.ncurry to new implementation of - Function.prototype.curry, it now serves real curry concept additionaly it - covers use cases for aritize and hold, which were removed. -* Rename Array's peek to last, and provide support for sparse arrays in it -* Rename Date's monthDaysCount into daysInMonth -* Simplify object iterators, now order of iteration can be configured with just - compareFn argument (no extra byKeys option) -* Rename Object.isDuplicate to Object.isCopy -* Rename Object.isEqual to Object.is which is compatible with future 'is' - keyword -* Function.memoize is now Function.prototype.memoize. Additionally clear cache - functionality is added, and access to original arguments object. -* Rename validation functions: assertNotNull to validValue, assertCallable to - validCallable. validValue was moved to Object namespace. On success they now - return validated value instead of true, it supports better composition. - Additionally created Date.validDate and Error.validError -* All documentation is now held in README.md not in code files. -* Move guid to String namespace. All guids now start with numbers. -* Array.generate: fill argument is now optional -* Object.toArray is now Array.from (as new ES6 specification draft suggests) -* All methods that rely on indexOf or lastIndexOf, now rely on egal (Object.is) - versions of them (eIndexOf, eLastIndexOf) -* Turn all get* functions that returned methods into actuall methods (get* - functionality can still be achieved with help of Function.prototype.partial). - So: Date.getFormat is now Date.prototype.format, - Number.getPad is now Number.prototype.pad, - String.getFormat is now String.prototype.format, - String.getIndent is now String.prototype.indent, - String.getPad is now String.prototype.pad -* Refactored Object.descriptor, it is now just two functions, main one and - main.gs, main is for describing values, and gs for describing getters and - setters. Configuration is passed with first argument as string e.g. 'ce' for - configurable and enumerable. If no configuration string is provided then by - default it returns configurable and writable but not enumerable for value or - configurable but not enumerable for getter/setter -* Function.prototype.silent now returns prepared function (it was - expected to be fixed for 0.7) -* Reserved keywords map (reserved) is now array not hash. -* Object.merge is now Object.extend (while former Object.extend was completely - removed) - 'extend' implies that we change object, not creating new one (as - 'merge' may imply). Similarily Object.mergeProperties was renamed to - Object.extendProperties -* Position argument support in Array.prototype.contains and - String.prototype.contains (so it follows ES6 specification draft) -* endPosition argument support in String.prototype.endsWith and fromPosition - argument support in String.prototype.startsWith (so it follows ES6 - specification draft) -* Better and cleaner String.prototype.indent implementation. No default value - for indent string argument, optional nest value (defaults to 1), remove - nostart argument -* Correct length values for most methods (so they reflect length of similar - methods in standard) -* Length argument is now optional in number and string pad methods. -* Improve arguments validation in general, so it adheres to standard conventions -* Fixed format of package.json - -Removed methods and functions: -* Object.prototype.slice - Object is not ordered collection, so slice doesn't - make sense. -* Function's rcurry, rncurry, s - too cumbersome for JS, not many use cases for - that -* Function.prototype.aritize and Function.prototype.hold - same functionality - can be achieved with new Function.prototype.curry -* Function.prototype.log - provided more generic Function.prototype.wrap for - same use case -* getNextIdGenerator - no use case for that (String.guid should be used if - needed) -* Object.toObject - Can be now acheived with Object(validValue(x)) -* Array.prototype.someValue - no real use case (personally used once and - case was already controversial) -* Date.prototype.duration - moved to external package -* Number.getAutoincrement - No real use case -* Object.prototype.extend, Object.prototype.override, - Object.prototype.plainCreate, Object.prototype.plainExtend - It was probably - too complex, same should be achieved just with Object.create, - Object.descriptor and by saving references to super methods in local scope. -* Object.getCompareBy - Functions should be created individually for each use - case -* Object.get, Object.getSet, Object.set, Object.unset - Not many use cases and - same can be easily achieved with simple inline function -* String.getPrefixWith - Not real use case for something that can be easily - achieved with '+' operator -* Object.isPrimitive - It's just negation of Object.isObject -* Number.prototype.isLess, Number.prototype.isLessOrEqual - they shouldn't be in - Number namespace and should rather be addressed with simple inline functions. -* Number.prototype.subtract - Should rather be addressed with simple inline - function - -New methods and functions: -* Array.prototype.lastIndex - Returns last declared index in array -* String.prototype.last - last for strings -* Function.prototype.wrap - Wrap function with other, it allows to specify - before and after behavior transform return value or prevent original function - from being called. -* Math.sign - Returns sign of a number (already in ES6 specification draft) -* Number.toInt - Converts value to integer (already in ES6 specification draft) -* Number.isNaN - Returns true if value is NaN (already in ES6 specification - draft) -* Number.toUint - Converts value to unsigned integer -* Number.toUint32 - Converts value to 32bit unsigned integer -* Array.prototype.eIndexOf, eLastIndexOf - Egal version (that uses Object.is) of - standard methods (all methods that were using native indexOf or lastIndexOf - now uses eIndexOf and elastIndexOf respectively) -* Array.of - as it's specified for ES6 - -Fixes: -* Fixed binarySearch so it always returns valid list index -* Object.isList - it failed on lists that are callable (e.g. NodeList in Nitro - engine) -* Object.map now supports third argument for callback - -v0.7.1 -- 2012.01.05 -New methods: -* Array.prototype.firstIndex - returns first valid index of array (for - sparse arrays it may not be '0' - -Improvements: -* Array.prototype.first - now returns value for index returned by firstIndex -* Object.prototype.mapToArray - can be called without callback, then array of - key-value pairs is returned - -Fixes -* Array.prototype.forEachRight, object's length read through UInt32 conversion - -v0.7.0 -- 2011.12.27 -Major update. -Stepped back from experimental ideas and introduced more standard approach -taking example from how ES5 methods and functions are designed. One exceptions -is that, we don’t refrain from declaring methods for Object.prototype - it’s up -to developer whether how he decides to use it in his context (as function or as -method). - -In general: -* Removed any method 'functionalization' and functionalize method itself. - es5-ext declares plain methods, which can be configured to work as functions - with call.bind(method) - see documentation. -* Removed separation of Object methods for ES5 (with descriptors) and - ES3 (plain) - we're following ES5 idea on that, some methods are intended just - for enumerable properties and some are for all properties, all are declared - for Object.prototype -* Removed separation of Array generic (collected in List folder) and not generic - methods (collected in Array folder). Now all methods are generic and are in - Array/prototype folder. This separation also meant, that methods in Array are - usually destructive. We don’t do that separation now, there’s generally no use - case for destructive iterators, we should be fine with one version of each - method, (same as ES5 is fine with e.g. one, non destructive 'filter' method) -* Folder structure resembles tree of native ES5 Objects -* All methods are written with ES5 conventions in mind, it means that most - methods are generic and can be run on any object. In more detail: - ** Array.prototype and Object.prototype methods can be run on any object (any - not null or undefined value), - ** Date.prototype methods should be called only on Date instances. - ** Function.prototype methods can be called on any callable objects (not - necessarily functions) - ** Number.prototype & String.prototype methods can be called on any value, in - case of Number it it’ll be degraded to number, in case of string it’ll be - degraded to string. -* Travis CI support (only for Node v0.6 branch, as v0.4 has buggy V8 version) - -Improvements for existing functions and methods: -* Function.memoize (was Function.cache) is now fully generic, can operate on any - type of arguments and it’s NaN safe (all NaN objects are considered equal) -* Method properties passed to Object.prototype.extend or - Object.prototype.override can aside of _super optionally take prototype object - via _proto argument -* Object iterators: forEach, mapToArray and every can now iterate in specified - order -* pluck, invoke and other functions that return reusable functions or methods - have now their results memoized. - -New methods: -* Global: assertNotNull, getNextIdGenerator, guid, isEqual, isPrimitive, - toObject -* Array: generate -* Array.prototype: binarySearch, clear, contains, diff, exclusion, find, first, - forEachRight, group, indexesOf, intersection, remove, someRight, someValue -* Boolean: isBoolean -* Date: isDate -* Function: arguments, context, insert, isArguments, remove -* Function.prototype: not, silent -* Number: getAutoincrement, isNumber -* Number.prototype: isLessOrEqual, isLess, subtract -* Object: assertCallable, descriptor (functions for clean descriptors), - getCompareBy, isCallable, isObject -* Object.prototype: clone (real clone), compact, count, diff, empty, - getPropertyNames, get, keyOf, mapKeys, override, plainCreate, plainExtend, - slice, some, unset -* RegExp: isRegExp -* String: getPrefixWith, isString -* String.prototype: caseInsensitiveCompare, contains, isNumeric - -Renamed methods: -* Date.clone -> Date.prototype.copy -* Date.format -> Date.getFormat -* Date/day/floor -> Date.prototype.floorDay -* Date/month/floor -> Date.prototype.floorMonth -* Date/month/year -> Date.prototype.floorYear -* Function.cache -> Function.memoize -* Function.getApplyArg -> Function.prototype.match -* Function.sequence -> Function.prototype.chain -* List.findSameStartLength -> Array.prototype.commonLeft -* Number.pad -> Number.getPad -* Object/plain/clone -> Object.prototype.copy -* Object/plain/elevate -> Object.prototype.flatten -* Object/plain/same -> Object.prototype.isDuplicate -* Object/plain/setValue -> Object.getSet -* String.format -> String.getFormat -* String.indent -> String.getIndent -* String.pad -> String.getPad -* String.trimLeftStr -> String.prototype.trimCommonLeft -* Object.merge -> Object.prototype.mergeProperties -* Object/plain/pluck -> Object.prototype.get -* Array.clone is now Array.prototype.copy and can be used also on any array-like - objects -* List.isList -> Object.isList -* List.toArray -> Object.prototype.toArray -* String/convert/dashToCamelCase -> String.prototype.dashToCamelCase - -Removed methods: -* Array.compact - removed destructive version (that operated on same array), we - have now non destructive version as Array.prototype.compact. -* Function.applyBind -> use apply.bind directly -* Function.bindBind -> use bind.bind directly -* Function.callBind -> use call.bind directly -* Fuction.clone -> no valid use case -* Function.dscope -> controversial approach, shouldn’t be considered seriously -* Function.functionalize -> It was experimental but standards are standards -* List/sort/length -> It can be easy obtained by Object.getCompareBy(‘length’) -* List.concat -> Concat’s for array-like’s makes no sense, just convert to array - first -* List.every -> Use Array.prototype.every directly -* List.filter -> Use Array.prototype.filter directly -* List.forEach -> User Array.prototype.forEach directly -* List.isListObject -> No valid use case, do: isList(list) && (typeof list === - 'object’) -* List.map -> Use Array.prototype.map directly -* List.reduce -> Use Array.prototype.reduce directly -* List.shiftSame -> Use Array.prototype.commonLeft and do slice -* List.slice -> Use Array.prototype.slice directly -* List.some -> Use Array.prototype.some directly -* Object.bindMethods -> it was version that considered descriptors, we have now - Object.prototype.bindMethods which operates only on enumerable properties -* Object.every -> version that considered all properties, we have now - Object.prototype.every which iterates only enumerables -* Object.invoke -> no use case -* Object.mergeDeep -> no use case -* Object.pluck -> no use case -* Object.same -> it considered descriptors, now there’s only Object.isDuplicate - which compares only enumerable properties -* Object.sameType -> no use case -* Object.toDescriptor and Object.toDescriptors -> replaced by much nicer - Object.descriptor functions -* Object/plain/link -> no use case (it was used internally only by - Object/plain/merge) -* Object/plain/setTrue -> now easily configurable by more universal - Object.getSet(true) -* String.trimRightStr -> Eventually String.prototype.trimCommonRight will be - added - -v0.6.3 -- 2011.12.12 -* Cleared npm warning for misnamed property in package.json - -v0.6.2 -- 2011.08.12 -* Calling String.indent without scope (global scope then) now treated as calling - it with null scope, it allows more direct invocations when using default nest - string: indent().call(str, nest) - -v0.6.1 -- 2011.08.08 -* Added TAD test suite to devDependencies, configured test commands. - Tests can be run with 'make test' or 'npm test' - -v0.6.0 -- 2011.08.07 -New methods: -* Array: clone, compact (in place) -* Date: format, duration, clone, monthDaysCount, day.floor, month.floor, - year.floor -* Function: getApplyArg, , ncurry, rncurry, hold, cache, log -* List: findSameStartLength, shiftSame, peek, isListObject -* Number: pad -* Object: sameType, toString, mapToArray, mergeDeep, toDescriptor, - toDescriptors, invoke -* String: startsWith, endsWith, indent, trimLeftStr, trimRightStr, pad, format - -Fixed: -* Object.extend does now prototypal extend as exptected -* Object.merge now tries to overwrite only configurable properties -* Function.flip - -Improved: -* Faster List.toArray -* Better global retrieval -* Functionalized all Function methods -* Renamed bindApply and bindCall to applyBind and callBind -* Removed Function.inherit (as it's unintuitive curry clone) -* Straightforward logic in Function.k -* Fixed naming of some tests files (letter case issue) -* Renamed Function.saturate into Function.lock -* String.dashToCamelCase digits support -* Strings now considered as List objects -* Improved List.compact -* Concise logic for List.concat -* Test wit TAD in clean ES5 context - -v0.5.1 -- 2011.07.11 -* Function's bindBind, bindCall and bindApply now more versatile - -v0.5.0 -- 2011.07.07 -* Removed Object.is and List.apply -* Renamed Object.plain.is to Object.plain.isPlainObject (keep naming convention - consistent) -* Improved documentation - -v0.4.0 -- 2011.07.05 -* Take most functions on Object to Object.plain to keep them away from object - descriptors -* Object functions with ES5 standard in mind (object descriptors) - -v0.3.0 -- 2011.06.24 -* New functions -* Consistent file naming (dash instead of camelCase) - -v0.2.1 -- 2011.05.28 -* Renamed Functions.K and Function.S to to lowercase versions (use consistent - naming) - -v0.2.0 -- 2011.05.28 -* Renamed Array folder to List (as its generic functions for array-like objects) -* Added Makefile -* Added various functions - -v0.1.0 -- 2011.05.24 -* Initial version diff --git a/tools/eslint/node_modules/es5-ext/package.json b/tools/eslint/node_modules/es5-ext/package.json index 0b5063bd5b..6a36f4f0df 100644 --- a/tools/eslint/node_modules/es5-ext/package.json +++ b/tools/eslint/node_modules/es5-ext/package.json @@ -2,14 +2,14 @@ "_args": [ [ "es5-ext@~0.10.8", - "/Users/trott/test/node_modules/eslint/node_modules/es6-map" + "/Users/silverwind/git/node/tools/package/package/node_modules/es6-map" ] ], "_from": "es5-ext@>=0.10.8 <0.11.0", "_id": "es5-ext@0.10.11", "_inCache": true, "_installable": true, - "_location": "/eslint/es5-ext", + "_location": "/es5-ext", "_nodeVersion": "4.2.3", "_npmUser": { "email": "medikoo+npm@medikoo.com", @@ -26,19 +26,19 @@ "type": "range" }, "_requiredBy": [ - "/eslint/d", - "/eslint/es6-iterator", - "/eslint/es6-map", - "/eslint/es6-set", - "/eslint/es6-symbol", - "/eslint/es6-weak-map", - "/eslint/event-emitter" + "/d", + "/es6-iterator", + "/es6-map", + "/es6-set", + "/es6-symbol", + "/es6-weak-map", + "/event-emitter" ], "_resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.11.tgz", "_shasum": "8184c3e705a820948c2dbe043849379b1dbd0c45", "_shrinkwrap": null, "_spec": "es5-ext@~0.10.8", - "_where": "/Users/trott/test/node_modules/eslint/node_modules/es6-map", + "_where": "/Users/silverwind/git/node/tools/package/package/node_modules/es6-map", "author": { "email": "medyk@medikoo.com", "name": "Mariusz Nowak", @@ -65,28 +65,28 @@ "gitHead": "aba94140a6bf79ce1a448a2db8834e8c1842b527", "homepage": "https://github.com/medikoo/es5-ext#readme", "keywords": [ + "addons", "ecmascript", "ecmascript5", "ecmascript6", "es5", "es6", - "extensions", "ext", - "addons", + "extensions", "extras", "harmony", "javascript", "polyfill", "shim", "util", - "utils", - "utilities" + "utilities", + "utils" ], "license": "MIT", "maintainers": [ { - "email": "medikoo+npm@medikoo.com", - "name": "medikoo" + "name": "medikoo", + "email": "medikoo+npm@medikoo.com" } ], "name": "es5-ext", diff --git a/tools/eslint/node_modules/es5-ext/test/__tad.js b/tools/eslint/node_modules/es5-ext/test/__tad.js deleted file mode 100644 index 884577887f..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/__tad.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -exports.context = null; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/implement.js deleted file mode 100644 index f0605399e0..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../array/#/@@iterator/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/shim.js deleted file mode 100644 index e590d8f28e..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/@@iterator/shim.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -exports.__generic = function (t, a) { - var iterator = t.call(this); - a.deep(iterator.next(), { value: '1', done: false }); - a.deep(iterator.next(), { value: '2', done: false }); - a.deep(iterator.next(), { value: '3', done: false }); - a.deep(iterator.next(), { value: undefined, done: true }); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/_compare-by-length.js b/tools/eslint/node_modules/es5-ext/test/array/#/_compare-by-length.js deleted file mode 100644 index e40c305b98..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/_compare-by-length.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x = [4, 5, 6], y = { length: 8 }, w = {}, z = { length: 1 }; - - a.deep([x, y, w, z].sort(t), [w, z, x, y]); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/binary-search.js b/tools/eslint/node_modules/es5-ext/test/array/#/binary-search.js deleted file mode 100644 index cf3317371b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/binary-search.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -var compare = function (value) { return this - value; }; - -module.exports = function (t, a) { - var arr; - arr = [2, 5, 5, 8, 34, 67, 98, 345, 678]; - - // highest, equal match - a(t.call(arr, compare.bind(1)), 0, "All higher"); - a(t.call(arr, compare.bind(679)), arr.length - 1, "All lower"); - a(t.call(arr, compare.bind(4)), 0, "Mid"); - a(t.call(arr, compare.bind(5)), 2, "Match"); - a(t.call(arr, compare.bind(6)), 2, "Above"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/clear.js b/tools/eslint/node_modules/es5-ext/test/array/#/clear.js deleted file mode 100644 index a5b1c977ad..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/clear.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x = [1, 2, {}, 4]; - a(t.call(x), x, "Returns same array"); - a.deep(x, [], "Empties array"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/compact.js b/tools/eslint/node_modules/es5-ext/test/array/#/compact.js deleted file mode 100644 index 6390eb26dd..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/compact.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -module.exports = { - __generic: function (t, a) { - a(t.call(this).length, 3); - }, - "": function (t, a) { - var o, x, y, z; - o = {}; - x = [0, 1, "", null, o, false, undefined, true]; - y = x.slice(0); - - a.not(z = t.call(x), x, "Returns different object"); - a.deep(x, y, "Origin not changed"); - a.deep(z, [0, 1, "", o, false, true], "Result"); - } -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/concat/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/concat/implement.js deleted file mode 100644 index 3bdbe86812..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/concat/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../array/#/concat/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/concat/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/concat/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/concat/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/concat/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/concat/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/concat/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/concat/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/concat/shim.js deleted file mode 100644 index c30eb7eab0..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/concat/shim.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; - -var SubArray = require('../../../../array/_sub-array-dummy-safe'); - -module.exports = function (t, a) { - var arr = [1, 3, 45], x = {}, subArr, subArr2, result; - - a.deep(t.call(arr, '2d', x, ['ere', 'fe', x], false, null), - [1, 3, 45, '2d', x, 'ere', 'fe', x, false, null], "Plain array"); - - subArr = new SubArray('lol', 'miszko'); - subArr2 = new SubArray('elo', 'fol'); - - result = t.call(subArr, 'df', arr, 'fef', subArr2, null); - a(result instanceof SubArray, true, "Instance of subclass"); - a.deep(result, ['lol', 'miszko', 'df', 1, 3, 45, 'fef', 'elo', 'fol', null], - "Spreable by default"); - - SubArray.prototype['@@isConcatSpreadable'] = false; - - result = t.call(subArr, 'df', arr, 'fef', subArr2, null); - a.deep(result, ['lol', 'miszko', 'df', 1, 3, 45, 'fef', subArr2, null], - "Non spreadable"); - - delete SubArray.prototype['@@isConcatSpreadable']; -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/contains.js b/tools/eslint/node_modules/es5-ext/test/array/#/contains.js deleted file mode 100644 index 21404a17a6..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/contains.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -module.exports = { - __generic: function (t, a) { - a(t.call(this, this[1]), true, "Contains"); - a(t.call(this, {}), false, "Does Not contain"); - }, - "": function (t, a) { - var o, x = {}, y = {}; - - o = [1, 'raz', x]; - - a(t.call(o, 1), true, "First"); - a(t.call(o, '1'), false, "Type coercion"); - a(t.call(o, 'raz'), true, "Primitive"); - a(t.call(o, 'foo'), false, "Primitive not found"); - a(t.call(o, x), true, "Object found"); - a(t.call(o, y), false, "Object not found"); - a(t.call(o, 1, 1), false, "Position"); - } -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/implement.js deleted file mode 100644 index 36070477d6..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../array/#/copy-within/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/shim.js deleted file mode 100644 index 93c85ea311..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/copy-within/shim.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var args, x; - - a.h1("2 args"); - x = [1, 2, 3, 4, 5]; - t.call(x, 0, 3); - a.deep(x, [4, 5, 3, 4, 5]); - a.deep(t.call([1, 2, 3, 4, 5], 1, 3), [1, 4, 5, 4, 5]); - a.deep(t.call([1, 2, 3, 4, 5], 1, 2), [1, 3, 4, 5, 5]); - a.deep(t.call([1, 2, 3, 4, 5], 2, 2), [1, 2, 3, 4, 5]); - - a.h1("3 args"); - a.deep(t.call([1, 2, 3, 4, 5], 0, 3, 4), [4, 2, 3, 4, 5]); - a.deep(t.call([1, 2, 3, 4, 5], 1, 3, 4), [1, 4, 3, 4, 5]); - a.deep(t.call([1, 2, 3, 4, 5], 1, 2, 4), [1, 3, 4, 4, 5]); - - a.h1("Negative args"); - a.deep(t.call([1, 2, 3, 4, 5], 0, -2), [4, 5, 3, 4, 5]); - a.deep(t.call([1, 2, 3, 4, 5], 0, -2, -1), [4, 2, 3, 4, 5]); - a.deep(t.call([1, 2, 3, 4, 5], -4, -3, -2), [1, 3, 3, 4, 5]); - a.deep(t.call([1, 2, 3, 4, 5], -4, -3, -1), [1, 3, 4, 4, 5]); - a.deep(t.call([1, 2, 3, 4, 5], -4, -3), [1, 3, 4, 5, 5]); - - a.h1("Array-likes"); - args = { 0: 1, 1: 2, 2: 3, length: 3 }; - a.deep(t.call(args, -2, 0), { '0': 1, '1': 1, '2': 2, length: 3 }); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/diff.js b/tools/eslint/node_modules/es5-ext/test/array/#/diff.js deleted file mode 100644 index bcfa3a0bd1..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/diff.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -module.exports = { - __generic: function (t, a) { - a.deep(t.call(this, this), []); - }, - "": function (t, a) { - var x = {}, y = {}; - - a.deep(t.call([1, 'raz', x, 2, 'trzy', y], [x, 2, 'trzy']), [1, 'raz', y], - "Scope longer"); - a.deep(t.call([1, 'raz', x], [x, 2, 'trzy', 1, y]), ['raz'], - "Arg longer"); - a.deep(t.call([1, 'raz', x], []), [1, 'raz', x], "Empty arg"); - a.deep(t.call([], [1, y, 'sdfs']), [], "Empty scope"); - } -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/e-index-of.js b/tools/eslint/node_modules/es5-ext/test/array/#/e-index-of.js deleted file mode 100644 index 4cf6c6359d..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/e-index-of.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x = {}; - a(t.call([3, 'raz', {}, x, {}], x), 3, "Regular"); - a(t.call([3, 'raz', NaN, {}, NaN], NaN), 2, "NaN"); - a(t.call([3, 'raz', 0, {}, -0], -0), 2, "-0"); - a(t.call([3, 'raz', -0, {}, 0], +0), 2, "+0"); - a(t.call([3, 'raz', NaN, {}, NaN], NaN, 3), 4, "fromIndex"); - a(t.call([3, 'raz', NaN, {}, NaN], NaN, -1), 4, "fromIndex negative #1"); - a(t.call([3, 'raz', NaN, {}, NaN], NaN, -2), 4, "fromIndex negative #2"); - a(t.call([3, 'raz', NaN, {}, NaN], NaN, -3), 2, "fromIndex negative #3"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/e-last-index-of.js b/tools/eslint/node_modules/es5-ext/test/array/#/e-last-index-of.js deleted file mode 100644 index ed4f700421..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/e-last-index-of.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x = {}; - a(t.call([3, 'raz', {}, x, {}, x], x), 5, "Regular"); - a(t.call([3, 'raz', NaN, {}, x], NaN), 2, "NaN"); - a(t.call([3, 'raz', 0, {}, -0], -0), 4, "-0"); - a(t.call([3, 'raz', -0, {}, 0], +0), 4, "+0"); - a(t.call([3, 'raz', NaN, {}, NaN], NaN, 3), 2, "fromIndex"); - a(t.call([3, 'raz', NaN, 2, NaN], NaN, -1), 4, "Negative fromIndex #1"); - a(t.call([3, 'raz', NaN, 2, NaN], NaN, -2), 2, "Negative fromIndex #2"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/entries/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/entries/implement.js deleted file mode 100644 index 733209a1c8..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/entries/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../array/#/entries/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/entries/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/entries/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/entries/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/entries/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/entries/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/entries/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/entries/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/entries/shim.js deleted file mode 100644 index bf40d31005..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/entries/shim.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -exports.__generic = function (t, a) { - var iterator = t.call(this); - a.deep(iterator.next(), { value: [0, '1'], done: false }); - a.deep(iterator.next(), { value: [1, '2'], done: false }); - a.deep(iterator.next(), { value: [2, '3'], done: false }); - a.deep(iterator.next(), { value: undefined, done: true }); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/exclusion.js b/tools/eslint/node_modules/es5-ext/test/array/#/exclusion.js deleted file mode 100644 index 07b32d8e8c..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/exclusion.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -module.exports = { - __generic: function (t, a) { - var x = {}; - a.deep(t.call(this, this, [this[0], this[2], x]), [x]); - }, - "": function (t, a) { - var x = {}, y = {}; - - a.deep(t.call([x, y]), [x, y], "No arguments"); - a.deep(t.call([x, 1], [], []), [x, 1], "Empty arguments"); - a.deep(t.call([1, 'raz', x], [2, 'raz', y], [2, 'raz', x]), [1, y]); - } -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/fill/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/fill/implement.js deleted file mode 100644 index 2a01d2850a..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/fill/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../array/#/fill/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/fill/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/fill/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/fill/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/fill/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/fill/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/fill/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/fill/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/fill/shim.js deleted file mode 100644 index d67300fcc2..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/fill/shim.js +++ /dev/null @@ -1,18 +0,0 @@ -// Taken from https://github.com/paulmillr/es6-shim/blob/master/test/array.js - -'use strict'; - -module.exports = function (t, a) { - var x; - - x = [1, 2, 3, 4, 5, 6]; - a(t.call(x, -1), x, "Returns self object"); - a.deep(x, [-1, -1, -1, -1, -1, -1], "Value"); - - a.deep(t.call([1, 2, 3, 4, 5, 6], -1, 3), [1, 2, 3, -1, -1, -1], - "Positive start"); - a.deep(t.call([1, 2, 3, 4, 5, 6], -1, -3), [1, 2, 3, -1, -1, -1], - "Negative start"); - a.deep(t.call([1, 2, 3, 4, 5, 6], -1, 9), [1, 2, 3, 4, 5, 6], - "Large start"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/filter/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/filter/implement.js deleted file mode 100644 index 6d6b87cc30..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/filter/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../array/#/filter/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/filter/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/filter/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/filter/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/filter/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/filter/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/filter/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/filter/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/filter/shim.js deleted file mode 100644 index e8b5c39849..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/filter/shim.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -var SubArray = require('../../../../array/_sub-array-dummy-safe'); - -module.exports = function (t, a) { - var arr, x = {}, subArr, result; - - arr = ['foo', undefined, 0, '2d', false, x, null]; - - a.deep(t.call(arr, Boolean), ['foo', '2d', x], "Plain array"); - - subArr = new SubArray('foo', undefined, 0, '2d', false, x, null); - - result = t.call(subArr, Boolean); - a(result instanceof SubArray, true, "Instance of subclass"); - a.deep(result, ['foo', '2d', x], "Result of subclass"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/find-index/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/find-index/implement.js deleted file mode 100644 index 8d85e618cc..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/find-index/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../array/#/find-index/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/find-index/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/find-index/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/find-index/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/find-index/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/find-index/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/find-index/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/find-index/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/find-index/shim.js deleted file mode 100644 index b5fee46381..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/find-index/shim.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -exports.__generic = function (t, a) { - var count = 0, o = {}, self = Object(this); - a(t.call(self, function (value, i, scope) { - a(value, this[i], "Value"); - a(i, count++, "Index"); - a(scope, this, "Scope"); - }, self), -1, "Falsy result"); - a(count, 3); - - count = -1; - a(t.call(this, function () { - return ++count ? o : null; - }, this), 1, "Truthy result"); - a(count, 1); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/find/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/find/implement.js deleted file mode 100644 index 29fac41e01..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/find/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../array/#/find/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/find/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/find/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/find/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/find/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/find/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/find/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/find/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/find/shim.js deleted file mode 100644 index ad2e645067..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/find/shim.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -exports.__generic = function (t, a) { - var count = 0, o = {}, self = Object(this); - a(t.call(self, function (value, i, scope) { - a(value, this[i], "Value"); - a(i, count++, "Index"); - a(scope, this, "Scope"); - }, self), undefined, "Falsy result"); - a(count, 3); - - count = -1; - a(t.call(this, function () { - return ++count ? o : null; - }, this), this[1], "Truthy result"); - a(count, 1); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/first-index.js b/tools/eslint/node_modules/es5-ext/test/array/#/first-index.js deleted file mode 100644 index 4aebad64b4..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/first-index.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x; - a(t.call([]), null, "Empty"); - a(t.call([null]), 0, "One value"); - a(t.call([1, 2, 3]), 0, "Many values"); - a(t.call(new Array(1000)), null, "Sparse empty"); - x = []; - x[883] = undefined; - x[890] = null; - a(t.call(x), 883, "Manual sparse, distant value"); - x = new Array(1000); - x[657] = undefined; - x[700] = null; - a(t.call(x), 657, "Sparse, distant value"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/first.js b/tools/eslint/node_modules/es5-ext/test/array/#/first.js deleted file mode 100644 index 87fde0357e..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/first.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -exports.__generic = function (t, a) { - a(t.call(this), this[0]); -}; -exports[''] = function (t, a) { - var x; - a(t.call([]), undefined, "Empty"); - a(t.call(new Array(234), undefined, "Sparse empty")); - x = new Array(2342); - x[434] = {}; - a(t.call(x), x[434], "Sparse"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/flatten.js b/tools/eslint/node_modules/es5-ext/test/array/#/flatten.js deleted file mode 100644 index 65f1214b04..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/flatten.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -var o = [1, 2, [3, 4, [5, 6], 7, 8], 9, 10]; - -module.exports = { - __generic: function (t, a) { - a(t.call(this).length, 3); - }, - "Nested Arrays": function (t, a) { - a(t.call(o).length, 10); - } -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/for-each-right.js b/tools/eslint/node_modules/es5-ext/test/array/#/for-each-right.js deleted file mode 100644 index 2d24569d94..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/for-each-right.js +++ /dev/null @@ -1,36 +0,0 @@ -'use strict'; - -module.exports = { - __generic: function (t, a) { - var count = 0, first, last, x, icount = this.length; - t.call(this, function (item, index, col) { - ++count; - if (!first) { - first = item; - } - last = item; - x = col; - a(index, --icount, "Index"); - }); - a(count, this.length, "Iterated"); - a(first, this[this.length - 1], "First is last"); - a(last, this[0], "Last is first"); - a.deep(x, Object(this), "Collection as third argument"); //jslint: skip - }, - "": function (t, a) { - var x = {}, y, count; - t.call([1], function () { y = this; }, x); - a(y, x, "Scope"); - y = 0; - t.call([3, 4, 4], function (a, i) { y += i; }); - a(y, 3, "Indexes"); - - x = [1, 3]; - x[5] = 'x'; - y = 0; - count = 0; - t.call(x, function (a, i) { ++count; y += i; }); - a(y, 6, "Misssing Indexes"); - a(count, 3, "Misssing Indexes, count"); - } -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/group.js b/tools/eslint/node_modules/es5-ext/test/array/#/group.js deleted file mode 100644 index 32dc8c2dbb..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/group.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -module.exports = { - __generic: function (t, a) { - var count = 0, self; - - self = Object(this); - a.deep(t.call(self, function (v, i, scope) { - a(v, this[i], "Value"); - a(i, count++, "Index"); - a(scope, this, "Scope"); - return i; - }, self), { 0: [this[0]], 1: [this[1]], 2: [this[2]] }); - }, - "": function (t, a) { - var r; - r = t.call([2, 3, 3, 4, 5, 6, 7, 7, 23, 45, 34, 56], - function (v) { - return v % 2 ? 'odd' : 'even'; - }); - a.deep(r.odd, [3, 3, 5, 7, 7, 23, 45]); - a.deep(r.even, [2, 4, 6, 34, 56]); - } -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/indexes-of.js b/tools/eslint/node_modules/es5-ext/test/array/#/indexes-of.js deleted file mode 100644 index 3364170f1e..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/indexes-of.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -module.exports = { - __generic: function (t, a) { - a.deep(t.call(this, this[1]), [1]); - }, - "": function (t, a) { - var x = {}; - a.deep(t.call([1, 3, 5, 3, 5], 6), [], "No result"); - a.deep(t.call([1, 3, 5, 1, 3, 5, 1], 1), [0, 3, 6], "Some results"); - a.deep(t.call([], x), [], "Empty array"); - a.deep(t.call([x, 3, {}, x, 3, 5, x], x), [0, 3, 6], "Search for object"); - } -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/intersection.js b/tools/eslint/node_modules/es5-ext/test/array/#/intersection.js deleted file mode 100644 index b72b2fb074..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/intersection.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -var toArray = require('../../../array/to-array'); - -module.exports = { - __generic: function (t, a) { - a.deep(t.call(this, this, this), toArray(this)); - }, - "": function (t, a) { - var x = {}, y = {}, p, r; - a.deep(t.call([], [2, 3, 4]), [], "Empty #1"); - a.deep(t.call([2, 3, 4], []), [], "Empty #2"); - a.deep(t.call([2, 3, x], [y, 5, 7]), [], "Different"); - p = t.call([3, 5, 'raz', {}, 'dwa', x], [1, 3, 'raz', 'dwa', 'trzy', x, {}], - [3, 'raz', x, 65]); - r = [3, 'raz', x]; - p.sort(); - r.sort(); - a.deep(p, r, "Same parts"); - a.deep(t.call(r, r), r, "Same"); - a.deep(t.call([1, 2, x, 4, 5, y, 7], [7, y, 5, 4, x, 2, 1]), - [1, 2, x, 4, 5, y, 7], "Long reverse same"); - } -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/is-copy.js b/tools/eslint/node_modules/es5-ext/test/array/#/is-copy.js deleted file mode 100644 index e7f80e7a8d..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/is-copy.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x = {}; - a(t.call([], []), true, "Empty"); - a(t.call([], {}), true, "Empty lists"); - a(t.call([1, x, 'raz'], [1, x, 'raz']), true, "Same"); - a(t.call([1, x, 'raz'], { 0: 1, 1: x, 2: 'raz', length: 3 }), true, - "Same lists"); - a(t.call([1, x, 'raz'], [x, 1, 'raz']), false, "Diff order"); - a(t.call([1, x], [1, x, 'raz']), false, "Diff length #1"); - a(t.call([1, x, 'raz'], [1, x]), false, "Diff length #2"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/is-uniq.js b/tools/eslint/node_modules/es5-ext/test/array/#/is-uniq.js deleted file mode 100644 index 7349ba3371..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/is-uniq.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x = {}; - a(t.call([]), true, "Empty"); - a(t.call({}), true, "Empty lists"); - a(t.call([1, x, 'raz']), true, "Uniq"); - a(t.call([1, x, 1, 'raz']), false, "Not Uniq: primitive"); - a(t.call([1, x, '1', 'raz']), true, "Uniq: primitive"); - a(t.call([1, x, 1, {}, 'raz']), false, "Not Uniq: Obj"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/keys/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/keys/implement.js deleted file mode 100644 index b0c1aa078f..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/keys/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../array/#/keys/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/keys/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/keys/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/keys/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/keys/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/keys/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/keys/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/keys/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/keys/shim.js deleted file mode 100644 index a43c04cac1..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/keys/shim.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -exports.__generic = function (t, a) { - var iterator = t.call(this); - a.deep(iterator.next(), { value: 0, done: false }); - a.deep(iterator.next(), { value: 1, done: false }); - a.deep(iterator.next(), { value: 2, done: false }); - a.deep(iterator.next(), { value: undefined, done: true }); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/last-index.js b/tools/eslint/node_modules/es5-ext/test/array/#/last-index.js deleted file mode 100644 index a1cac1073f..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/last-index.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x; - a(t.call([]), null, "Empty"); - a(t.call([null]), 0, "One value"); - a(t.call([1, 2, 3]), 2, "Many values"); - a(t.call(new Array(1000)), null, "Sparse empty"); - x = []; - x[883] = null; - x[890] = undefined; - a(t.call(x), 890, "Manual sparse, distant value"); - x = new Array(1000); - x[657] = null; - x[700] = undefined; - a(t.call(x), 700, "Sparse, distant value"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/last.js b/tools/eslint/node_modules/es5-ext/test/array/#/last.js deleted file mode 100644 index 8d051bc8d2..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/last.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -exports.__generic = function (t, a) { - a(t.call(this), this[this.length - 1]); -}; - -exports[''] = function (t, a) { - var x; - a(t.call([]), undefined, "Empty"); - a(t.call(new Array(234), undefined, "Sparse empty")); - x = new Array(2342); - x[434] = {}; - x[450] = {}; - a(t.call(x), x[450], "Sparse"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/map/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/map/implement.js deleted file mode 100644 index cdcbc8df62..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/map/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../array/#/map/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/map/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/map/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/map/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/map/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/map/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/map/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/map/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/map/shim.js deleted file mode 100644 index bbfefe8e33..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/map/shim.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -var SubArray = require('../../../../array/_sub-array-dummy-safe'); - -module.exports = function (t, a) { - var arr, x = {}, subArr, result; - - arr = ['foo', undefined, 0, '2d', false, x, null]; - - a.deep(t.call(arr, Boolean), [true, false, false, true, false, true, false], - "Plain array"); - - subArr = new SubArray('foo', undefined, 0, '2d', false, x, null); - - result = t.call(subArr, Boolean); - a(result instanceof SubArray, true, "Instance of subclass"); - a.deep(result, [true, false, false, true, false, true, false], - "Result of subclass"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/remove.js b/tools/eslint/node_modules/es5-ext/test/array/#/remove.js deleted file mode 100644 index 3ebdca2d01..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/remove.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var y = {}, z = {}, x = [9, z, 5, y, 'foo']; - t.call(x, y); - a.deep(x, [9, z, 5, 'foo']); - t.call(x, {}); - a.deep(x, [9, z, 5, 'foo'], "Not existing"); - t.call(x, 5); - a.deep(x, [9, z, 'foo'], "Primitive"); - x = [9, z, 5, y, 'foo']; - t.call(x, z, 5, 'foo'); - a.deep(x, [9, y], "More than one argument"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/separate.js b/tools/eslint/node_modules/es5-ext/test/array/#/separate.js deleted file mode 100644 index 42918b5971..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/separate.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x = [], y = {}, z = {}; - a.deep(t.call(x, y), [], "Empty"); - a.not(t.call(x), x, "Returns copy"); - a.deep(t.call([1], y), [1], "One"); - a.deep(t.call([1, 'raz'], y), [1, y, 'raz'], "One"); - a.deep(t.call([1, 'raz', x], y), [1, y, 'raz', y, x], "More"); - x = new Array(1000); - x[23] = 2; - x[3453] = 'raz'; - x[500] = z; - a.deep(t.call(x, y), [2, y, z, y, 'raz'], "Sparse"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/slice/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/slice/implement.js deleted file mode 100644 index 855ae2fa4d..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/slice/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../array/#/slice/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/slice/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/slice/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/slice/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/slice/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/slice/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/slice/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/slice/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/slice/shim.js deleted file mode 100644 index f674f34700..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/slice/shim.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -var SubArray = require('../../../../array/_sub-array-dummy-safe'); - -module.exports = function (t, a) { - var arr, x = {}, subArr, result; - - arr = ['foo', undefined, 0, '2d', false, x, null]; - - a.deep(t.call(arr, 2, 4), [0, '2d'], "Plain array: result"); - - subArr = new SubArray('foo', undefined, 0, '2d', false, x, null); - - result = t.call(subArr, 2, 4); - a(result instanceof SubArray, true, "Instance of subclass"); - a.deep(result, [0, '2d'], "Subclass: result"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/some-right.js b/tools/eslint/node_modules/es5-ext/test/array/#/some-right.js deleted file mode 100644 index 900771a6f8..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/some-right.js +++ /dev/null @@ -1,43 +0,0 @@ -'use strict'; - -module.exports = { - __generic: function (t, a) { - var count = 0, first, last, x, icount = this.length; - t.call(this, function (item, index, col) { - ++count; - if (!first) { - first = item; - } - last = item; - x = col; - a(index, --icount, "Index"); - }); - a(count, this.length, "Iterated"); - a(first, this[this.length - 1], "First is last"); - a(last, this[0], "Last is first"); - a.deep(x, Object(this), "Collection as third argument"); //jslint: skip - }, - "": function (t, a) { - var x = {}, y, count; - t.call([1], function () { y = this; }, x); - a(y, x, "Scope"); - y = 0; - t.call([3, 4, 4], function (a, i) { y += i; }); - a(y, 3, "Indexes"); - - x = [1, 3]; - x[5] = 'x'; - y = 0; - count = 0; - a(t.call(x, function (a, i) { ++count; y += i; }), false, "Return"); - a(y, 6, "Misssing Indexes"); - a(count, 3, "Misssing Indexes, count"); - - count = 0; - a(t.call([-2, -3, -4, 2, -5], function (item) { - ++count; - return item > 0; - }), true, "Return"); - a(count, 2, "Break after true is returned"); - } -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/splice/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/splice/implement.js deleted file mode 100644 index 0d9f46188b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/splice/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../array/#/splice/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/splice/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/splice/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/splice/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/splice/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/splice/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/splice/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/splice/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/splice/shim.js deleted file mode 100644 index 2c751e6724..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/splice/shim.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -var SubArray = require('../../../../array/_sub-array-dummy-safe'); - -module.exports = function (t, a) { - var arr, x = {}, subArr, result; - - arr = ['foo', undefined, 0, '2d', false, x, null]; - - a.deep(t.call(arr, 2, 2, 'bar'), [0, '2d'], "Plain array: result"); - a.deep(arr, ["foo", undefined, "bar", false, x, null], "Plain array: change"); - - subArr = new SubArray('foo', undefined, 0, '2d', false, x, null); - - result = t.call(subArr, 2, 2, 'bar'); - a(result instanceof SubArray, true, "Instance of subclass"); - a.deep(result, [0, '2d'], "Subclass: result"); - a.deep(subArr, ["foo", undefined, "bar", false, x, null], "Subclass: change"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/uniq.js b/tools/eslint/node_modules/es5-ext/test/array/#/uniq.js deleted file mode 100644 index 2f7e6c4ed1..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/uniq.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -module.exports = { - __generic: function (t, a) { - a(t.call(this).length, 3); - }, - "": function (t, a) { - var o, x = {}, y = {}, z = {}, w; - o = [1, 2, x, 3, 1, 'raz', '1', y, x, 'trzy', z, 'raz']; - - a.not(w = t.call(o), o, "Returns different object"); - a.deep(w, [1, 2, x, 3, 'raz', '1', y, 'trzy', z], "Result"); - } -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/values/implement.js b/tools/eslint/node_modules/es5-ext/test/array/#/values/implement.js deleted file mode 100644 index 9f40138c25..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/values/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../array/#/values/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/values/index.js b/tools/eslint/node_modules/es5-ext/test/array/#/values/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/values/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/values/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/#/values/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/values/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/#/values/shim.js b/tools/eslint/node_modules/es5-ext/test/array/#/values/shim.js deleted file mode 100644 index e590d8f28e..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/#/values/shim.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -exports.__generic = function (t, a) { - var iterator = t.call(this); - a.deep(iterator.next(), { value: '1', done: false }); - a.deep(iterator.next(), { value: '2', done: false }); - a.deep(iterator.next(), { value: '3', done: false }); - a.deep(iterator.next(), { value: undefined, done: true }); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/__scopes.js b/tools/eslint/node_modules/es5-ext/test/array/__scopes.js deleted file mode 100644 index 6bfdcbc949..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/__scopes.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -exports.Array = ['1', '2', '3']; - -exports.Arguments = (function () { - return arguments; -}('1', '2', '3')); - -exports.String = "123"; - -exports.Object = { 0: '1', 1: '2', 2: '3', 3: '4', length: 3 }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/_is-extensible.js b/tools/eslint/node_modules/es5-ext/test/array/_is-extensible.js deleted file mode 100644 index d387126fe1..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/_is-extensible.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(typeof t, 'boolean'); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/_sub-array-dummy-safe.js b/tools/eslint/node_modules/es5-ext/test/array/_sub-array-dummy-safe.js deleted file mode 100644 index 29d8699d46..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/_sub-array-dummy-safe.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -var isArray = Array.isArray; - -module.exports = function (t, a) { - t((t === null) || isArray(t.prototype), true); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/_sub-array-dummy.js b/tools/eslint/node_modules/es5-ext/test/array/_sub-array-dummy.js deleted file mode 100644 index 29d8699d46..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/_sub-array-dummy.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -var isArray = Array.isArray; - -module.exports = function (t, a) { - t((t === null) || isArray(t.prototype), true); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/from/implement.js b/tools/eslint/node_modules/es5-ext/test/array/from/implement.js deleted file mode 100644 index e0db846f99..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/from/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../array/from/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/from/index.js b/tools/eslint/node_modules/es5-ext/test/array/from/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/from/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/array/from/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/from/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/from/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/from/shim.js b/tools/eslint/node_modules/es5-ext/test/array/from/shim.js deleted file mode 100644 index 310302ac48..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/from/shim.js +++ /dev/null @@ -1,60 +0,0 @@ -// Some tests taken from: https://github.com/mathiasbynens/Array.from/blob/master/tests/tests.js - -'use strict'; - -module.exports = function (t, a) { - var o = [1, 2, 3], MyType; - a.not(t(o), o, "Array"); - a.deep(t(o), o, "Array: same content"); - a.deep(t('12r3v'), ['1', '2', 'r', '3', 'v'], "String"); - a.deep(t((function () { return arguments; }(3, o, 'raz'))), - [3, o, 'raz'], "Arguments"); - a.deep(t((function () { return arguments; }(3))), [3], - "Arguments with one numeric value"); - - a.deep(t({ 0: 'raz', 1: 'dwa', length: 2 }), ['raz', 'dwa'], "Other"); - - a.deep(t(o, function (val) { return (val + 2) * 10; }, 10), [30, 40, 50], - "Mapping"); - - a.throws(function () { t(); }, TypeError, "Undefined"); - a.deep(t(3), [], "Primitive"); - - a(t.length, 1, "Length"); - a.deep(t({ length: 0 }), [], "No values Array-like"); - a.deep(t({ length: -1 }), [], "Invalid length Array-like"); - a.deep(t({ length: -Infinity }), [], "Invalid length Array-like #2"); - a.throws(function () { t(undefined); }, TypeError, "Undefined"); - a.throws(function () { t(null); }, TypeError, "Null"); - a.deep(t(false), [], "Boolean"); - a.deep(t(-Infinity), [], "Inifity"); - a.deep(t(-0), [], "-0"); - a.deep(t(+0), [], "+0"); - a.deep(t(1), [], "1"); - a.deep(t(+Infinity), [], "+Infinity"); - a.deep(t({}), [], "Plain object"); - a.deep(t({ length: 1 }), [undefined], "Sparse array-like"); - a.deep(t({ '0': 'a', '1': 'b', length: 2 }, function (x) { return x + x; }), ['aa', 'bb'], - "Map"); - a.deep(t({ '0': 'a', '1': 'b', length: 2 }, function (x) { return String(this); }, undefined), - ['undefined', 'undefined'], "Map context"); - a.deep(t({ '0': 'a', '1': 'b', length: 2 }, function (x) { return String(this); }, 'x'), - ['x', 'x'], "Map primitive context"); - a.throws(function () { t({}, 'foo', 'x'); }, TypeError, "Non callable for map"); - - a.deep(t.call(null, { length: 1, '0': 'a' }), ['a'], "Null context"); - - a(t({ __proto__: { '0': 'abc', length: 1 } })[0], 'abc', "Values on prototype"); - - a.throws(function () { t.call(function () { return Object.freeze({}); }, {}); }, - TypeError, "Contructor producing freezed objects"); - - // Ensure no setters are called for the indexes - // Ensure no setters are called for the indexes - MyType = function () {}; - Object.defineProperty(MyType.prototype, '0', { - set: function (x) { throw new Error('Setter called: ' + x); } - }); - a.deep(t.call(MyType, { '0': 'abc', length: 1 }), { '0': 'abc', length: 1 }, - "Defined not set"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/generate.js b/tools/eslint/node_modules/es5-ext/test/array/generate.js deleted file mode 100644 index d72e056887..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/generate.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x = {}, y = {}; - a.deep(t(3), [undefined, undefined, undefined], "Just length"); - a.deep(t(0, 'x'), [], "No repeat"); - a.deep(t(1, x, y), [x], "Arguments length larger than repeat number"); - a.deep(t(3, x), [x, x, x], "Single argument"); - a.deep(t(5, x, y), [x, y, x, y, x], "Many arguments"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/is-plain-array.js b/tools/eslint/node_modules/es5-ext/test/array/is-plain-array.js deleted file mode 100644 index 871a08aec2..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/is-plain-array.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -var SubArray = require('../../array/_sub-array-dummy-safe'); - -module.exports = function (t, a) { - var arr = [1, 2, 3]; - a(t(arr), true, "Array"); - a(t(null), false, "Null"); - a(t(), false, "Undefined"); - a(t('234'), false, "String"); - a(t(23), false, "Number"); - a(t({}), false, "Plain object"); - a(t({ length: 1, 0: 'raz' }), false, "Array-like"); - a(t(Object.create(arr)), false, "Array extension"); - if (!SubArray) return; - a(t(new SubArray(23)), false, "Subclass instance"); - a(t(Array.prototype), false, "Array.prototype"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/of/implement.js b/tools/eslint/node_modules/es5-ext/test/array/of/implement.js deleted file mode 100644 index 30d53be2d7..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/of/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../array/of/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/of/index.js b/tools/eslint/node_modules/es5-ext/test/array/of/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/of/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/array/of/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/array/of/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/of/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/array/of/shim.js b/tools/eslint/node_modules/es5-ext/test/array/of/shim.js deleted file mode 100644 index e6974420c1..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/of/shim.js +++ /dev/null @@ -1,68 +0,0 @@ -// Most tests taken from https://github.com/mathiasbynens/Array.of/blob/master/tests/tests.js -// Thanks @mathiasbynens - -'use strict'; - -var defineProperty = Object.defineProperty; - -module.exports = function (t, a) { - var x = {}, testObject, MyType; - - a.deep(t(), [], "No arguments"); - a.deep(t(3), [3], "One numeric argument"); - a.deep(t(3, 'raz', null, x, undefined), [3, 'raz', null, x, undefined], - "Many arguments"); - - a(t.length, 0, "Length"); - - a.deep(t('abc'), ['abc'], "String"); - a.deep(t(undefined), [undefined], "Undefined"); - a.deep(t(null), [null], "Null"); - a.deep(t(false), [false], "Boolean"); - a.deep(t(-Infinity), [-Infinity], "Infinity"); - a.deep(t(-0), [-0], "-0"); - a.deep(t(+0), [+0], "+0"); - a.deep(t(1), [1], "1"); - a.deep(t(1, 2, 3), [1, 2, 3], "Numeric args"); - a.deep(t(+Infinity), [+Infinity], "+Infinity"); - a.deep(t({ '0': 'a', '1': 'b', '2': 'c', length: 3 }), - [{ '0': 'a', '1': 'b', '2': 'c', length: 3 }], "Array like"); - a.deep(t(undefined, null, false, -Infinity, -0, +0, 1, 2, +Infinity), - [undefined, null, false, -Infinity, -0, +0, 1, 2, +Infinity], "Falsy arguments"); - - a.h1("Null context"); - a.deep(t.call(null, 'abc'), ['abc'], "String"); - a.deep(t.call(null, undefined), [undefined], "Undefined"); - a.deep(t.call(null, null), [null], "Null"); - a.deep(t.call(null, false), [false], "Boolean"); - a.deep(t.call(null, -Infinity), [-Infinity], "-Infinity"); - a.deep(t.call(null, -0), [-0], "-0"); - a.deep(t.call(null, +0), [+0], "+0"); - a.deep(t.call(null, 1), [1], "1"); - a.deep(t.call(null, 1, 2, 3), [1, 2, 3], "Numeric"); - a.deep(t.call(null, +Infinity), [+Infinity], "+Infinity"); - a.deep(t.call(null, { '0': 'a', '1': 'b', '2': 'c', length: 3 }), - [{ '0': 'a', '1': 'b', '2': 'c', length: 3 }], "Array-like"); - a.deep(t.call(null, undefined, null, false, -Infinity, -0, +0, 1, 2, +Infinity), - [undefined, null, false, -Infinity, -0, +0, 1, 2, +Infinity], "Falsy"); - - a.h1("Other constructor context"); - a.deep(t.call(Object, 1, 2, 3), { '0': 1, '1': 2, '2': 3, length: 3 }, "Many arguments"); - - testObject = Object(3); - testObject[0] = 1; - testObject[1] = 2; - testObject[2] = 3; - testObject.length = 3; - a.deep(t.call(Object, 1, 2, 3), testObject, "Test object"); - a(t.call(Object).length, 0, "No arguments"); - a.throws(function () { t.call(function () { return Object.freeze({}); }); }, TypeError, - "Frozen instance"); - - // Ensure no setters are called for the indexes - MyType = function () {}; - defineProperty(MyType.prototype, '0', { - set: function (x) { throw new Error('Setter called: ' + x); } - }); - a.deep(t.call(MyType, 'abc'), { '0': 'abc', length: 1 }, "Define, not set"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/to-array.js b/tools/eslint/node_modules/es5-ext/test/array/to-array.js deleted file mode 100644 index 4985b5eaee..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/to-array.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var o = [1, 2, 3]; - a(t(o), o, "Array"); - a.deep(t('12r3v'), ['1', '2', 'r', '3', 'v'], "String"); - a.deep(t((function () { return arguments; }(3, o, 'raz'))), - [3, o, 'raz'], "Arguments"); - a.deep(t((function () { return arguments; }(3))), [3], - "Arguments with one numeric value"); - - a.deep(t({ 0: 'raz', 1: 'dwa', length: 2 }), ['raz', 'dwa'], "Other"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/array/valid-array.js b/tools/eslint/node_modules/es5-ext/test/array/valid-array.js deleted file mode 100644 index 3732192d1b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/array/valid-array.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x; - a.throws(function () { t(); }, TypeError, "Undefined"); - a.throws(function () { t(null); }, TypeError, "Null"); - a.throws(function () { t(0); }, TypeError, "Number"); - a.throws(function () { t(true); }, TypeError, "Boolean"); - a.throws(function () { t('raz'); }, TypeError, "String"); - a.throws(function () { t(function () {}); }, TypeError, "Function"); - a.throws(function () { t({}); }, TypeError, "Object"); - a.throws(function () { t({ length: 0 }); }, TypeError, "Array-like"); - a(t(x = []), x, "Array"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/boolean/is-boolean.js b/tools/eslint/node_modules/es5-ext/test/boolean/is-boolean.js deleted file mode 100644 index 4e6b3cb73e..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/boolean/is-boolean.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t('arar'), false, "String"); - a(t(12), false, "Number"); - a(t(false), true, "Boolean"); - a(t(new Boolean(false)), true, "Boolean object"); - a(t(new Date()), false, "Date"); - a(t(new String('raz')), false, "String object"); - a(t({}), false, "Plain object"); - a(t(/a/), false, "Regular expression"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/date/#/copy.js b/tools/eslint/node_modules/es5-ext/test/date/#/copy.js deleted file mode 100644 index 767c5e16a4..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/date/#/copy.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var o = new Date(), o2; - - o2 = t.call(o); - a.not(o, o2, "Different objects"); - a.ok(o2 instanceof Date, "Instance of Date"); - a(o.getTime(), o2.getTime(), "Same time"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/date/#/days-in-month.js b/tools/eslint/node_modules/es5-ext/test/date/#/days-in-month.js deleted file mode 100644 index 9ddba55f74..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/date/#/days-in-month.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call(new Date(2001, 0, 1)), 31, "January"); - a(t.call(new Date(2001, 1, 1)), 28, "February"); - a(t.call(new Date(2000, 1, 1)), 29, "February (leap)"); - a(t.call(new Date(2001, 2, 1)), 31, "March"); - a(t.call(new Date(2001, 3, 1)), 30, "April"); - a(t.call(new Date(2001, 4, 1)), 31, "May"); - a(t.call(new Date(2001, 5, 1)), 30, "June"); - a(t.call(new Date(2001, 6, 1)), 31, "July"); - a(t.call(new Date(2001, 7, 1)), 31, "August"); - a(t.call(new Date(2001, 8, 1)), 30, "September"); - a(t.call(new Date(2001, 9, 1)), 31, "October"); - a(t.call(new Date(2001, 10, 1)), 30, "November"); - a(t.call(new Date(2001, 11, 1)), 31, "December"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/date/#/floor-day.js b/tools/eslint/node_modules/es5-ext/test/date/#/floor-day.js deleted file mode 100644 index d4f4a9087c..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/date/#/floor-day.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call(new Date(2000, 0, 1, 13, 32, 34, 234)).valueOf(), - new Date(2000, 0, 1).valueOf()); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/date/#/floor-month.js b/tools/eslint/node_modules/es5-ext/test/date/#/floor-month.js deleted file mode 100644 index b4a81bef6d..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/date/#/floor-month.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call(new Date(2000, 0, 15, 13, 32, 34, 234)).valueOf(), - new Date(2000, 0, 1).valueOf()); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/date/#/floor-year.js b/tools/eslint/node_modules/es5-ext/test/date/#/floor-year.js deleted file mode 100644 index aae117e769..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/date/#/floor-year.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call(new Date(2000, 5, 13, 13, 32, 34, 234)).valueOf(), - new Date(2000, 0, 1).valueOf()); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/date/#/format.js b/tools/eslint/node_modules/es5-ext/test/date/#/format.js deleted file mode 100644 index e68e4bf782..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/date/#/format.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var dt = new Date(2011, 2, 3, 3, 5, 5, 32); - a(t.call(dt, ' %Y.%y.%m.%d.%H.%M.%S.%L '), ' 2011.11.03.03.03.05.05.032 '); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/date/is-date.js b/tools/eslint/node_modules/es5-ext/test/date/is-date.js deleted file mode 100644 index 109093dfbe..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/date/is-date.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t('arar'), false, "String"); - a(t(12), false, "Number"); - a(t(true), false, "Boolean"); - a(t(new Date()), true, "Date"); - a(t(new String('raz')), false, "String object"); - a(t({}), false, "Plain object"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/date/valid-date.js b/tools/eslint/node_modules/es5-ext/test/date/valid-date.js deleted file mode 100644 index 98787e4078..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/date/valid-date.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var d = new Date(); - a(t(d), d, "Date"); - a.throws(function () { - t({}); - }, "Object"); - a.throws(function () { - t({ valueOf: function () { return 20; } }); - }, "Number object"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/error/#/throw.js b/tools/eslint/node_modules/es5-ext/test/error/#/throw.js deleted file mode 100644 index 1213cfc3b1..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/error/#/throw.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var e = new Error(); - try { - t.call(e); - } catch (e2) { - a(e2, e); - } -}; diff --git a/tools/eslint/node_modules/es5-ext/test/error/custom.js b/tools/eslint/node_modules/es5-ext/test/error/custom.js deleted file mode 100644 index d4ff500c9b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/error/custom.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var T = t, err = new T('My Error', 'MY_ERROR', { errno: 123 }); - a(err instanceof Error, true, "Instance of error"); - a(err.constructor, Error, "Constructor"); - a(err.name, 'Error', "Name"); - a(String(err), 'Error: My Error', "String representation"); - a(err.code, 'MY_ERROR', "Code"); - a(err.errno, 123, "Errno"); - a(typeof err.stack, 'string', "Stack trace"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/error/is-error.js b/tools/eslint/node_modules/es5-ext/test/error/is-error.js deleted file mode 100644 index f8b5e2000e..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/error/is-error.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t(), false, "Undefined"); - a(t(1), false, "Primitive"); - a(t({}), false, "Objectt"); - a(t({ toString: function () { return '[object Error]'; } }), false, - "Fake error"); - a(t(new Error()), true, "Error"); - a(t(new EvalError()), true, "EvalError"); - a(t(new RangeError()), true, "RangeError"); - a(t(new ReferenceError()), true, "ReferenceError"); - a(t(new SyntaxError()), true, "SyntaxError"); - a(t(new TypeError()), true, "TypeError"); - a(t(new URIError()), true, "URIError"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/error/valid-error.js b/tools/eslint/node_modules/es5-ext/test/error/valid-error.js deleted file mode 100644 index e04cdb33b7..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/error/valid-error.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var e = new Error(); - a(t(e), e, "Error"); - a.throws(function () { - t({}); - }, "Other"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/compose.js b/tools/eslint/node_modules/es5-ext/test/function/#/compose.js deleted file mode 100644 index 83de5e844a..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/function/#/compose.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -var f = function (a, b) { return ['a', arguments.length, a, b]; } - , g = function (a) { return ['b', arguments.length].concat(a); } - , h = function (a) { return ['c', arguments.length].concat(a); }; - -module.exports = function (t, a) { - a.deep(t.call(h, g, f)(1, 2), ['c', 1, 'b', 1, 'a', 2, 1, 2]); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/copy.js b/tools/eslint/node_modules/es5-ext/test/function/#/copy.js deleted file mode 100644 index 7a22e2f249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/function/#/copy.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var foo = 'raz', bar = 'dwa' - , fn = function marko(a, b) { return this + a + b + foo + bar; } - , result, o = {}; - - fn.prototype = o; - - fn.foo = 'raz'; - - result = t.call(fn); - - a(result.length, fn.length, "Length"); - a(result.name, fn.name, "Length"); - a(result.call('marko', 'el', 'fe'), 'markoelferazdwa', "Body"); - a(result.prototype, fn.prototype, "Prototype"); - a(result.foo, fn.foo, "Custom property"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/curry.js b/tools/eslint/node_modules/es5-ext/test/function/#/curry.js deleted file mode 100644 index 18fb0389e7..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/function/#/curry.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -var toArray = require('../../../array/to-array') - - , f = function () { return toArray(arguments); }; - -module.exports = function (t, a) { - var x, y = {}, z; - a.deep(t.call(f, 0, 1, 2)(3), [], "0 arguments"); - x = t.call(f, 5, {}); - a(x.length, 5, "Length #1"); - z = x(1, 2); - a(z.length, 3, "Length #2"); - z = z(3, 4); - a(z.length, 1, "Length #1"); - a.deep(z(5, 6), [1, 2, 3, 4, 5], "Many arguments"); - a.deep(x(8, 3)(y, 45)('raz', 6), [8, 3, y, 45, 'raz'], "Many arguments #2"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/lock.js b/tools/eslint/node_modules/es5-ext/test/function/#/lock.js deleted file mode 100644 index 44a12d7b56..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/function/#/lock.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call(function () { - return arguments.length; - })(1, 2, 3), 0); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/not.js b/tools/eslint/node_modules/es5-ext/test/function/#/not.js deleted file mode 100644 index c0f5e9d4b9..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/function/#/not.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -var identity = require('../../../function/identity') - , noop = require('../../../function/noop'); - -module.exports = function (t, a) { - a(t.call(identity)(''), true, "Falsy"); - a(t.call(noop)(), true, "Undefined"); - a(t.call(identity)({}), false, "Any object"); - a(t.call(identity)(true), false, "True"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/partial.js b/tools/eslint/node_modules/es5-ext/test/function/#/partial.js deleted file mode 100644 index bd00ce752f..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/function/#/partial.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -var toArray = require('../../../array/to-array') - - , f = function () { return toArray(arguments); }; - -module.exports = function (t, a) { - a.deep(t.call(f, 1)(2, 3), [1, 2, 3]); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/spread.js b/tools/eslint/node_modules/es5-ext/test/function/#/spread.js deleted file mode 100644 index b82dfecfe9..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/function/#/spread.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -var f = function (a, b) { return this[a] + this[b]; } - , o = { a: 3, b: 4 }; - -module.exports = function (t, a) { - a(t.call(f).call(o, ['a', 'b']), 7); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/function/#/to-string-tokens.js b/tools/eslint/node_modules/es5-ext/test/function/#/to-string-tokens.js deleted file mode 100644 index 4c54d30354..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/function/#/to-string-tokens.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a.deep(t.call(function (a, b) { return this[a] + this[b]; }), - { args: 'a, b', body: ' return this[a] + this[b]; ' }); - a.deep(t.call(function () {}), - { args: '', body: '' }); - a.deep(t.call(function (raz) {}), - { args: 'raz', body: '' }); - a.deep(t.call(function () { Object(); }), - { args: '', body: ' Object(); ' }); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/function/_define-length.js b/tools/eslint/node_modules/es5-ext/test/function/_define-length.js deleted file mode 100644 index 8f037e857e..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/function/_define-length.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var foo = 'raz', bar = 'dwa' - , fn = function (a, b) { return this + a + b + foo + bar; } - , result; - - result = t(fn, 3); - a(result.call('marko', 'el', 'fe'), 'markoelferazdwa', "Content"); - a(result.length, 3, "Length"); - a(result.prototype, fn.prototype, "Prototype"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/function/constant.js b/tools/eslint/node_modules/es5-ext/test/function/constant.js deleted file mode 100644 index fda52aa437..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/function/constant.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -var o = {}; - -module.exports = function (t, a) { - a(t(o)(), o); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/function/identity.js b/tools/eslint/node_modules/es5-ext/test/function/identity.js deleted file mode 100644 index 8013e2e5af..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/function/identity.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -var o = {}; - -module.exports = function (t, a) { - a(t(o), o); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/function/invoke.js b/tools/eslint/node_modules/es5-ext/test/function/invoke.js deleted file mode 100644 index fcce4aaaaa..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/function/invoke.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -var constant = require('../../function/constant') - - , o = { b: constant('c') }; - -module.exports = function (t, a) { - a(t('b')(o), 'c'); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/function/is-arguments.js b/tools/eslint/node_modules/es5-ext/test/function/is-arguments.js deleted file mode 100644 index f8de8812a5..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/function/is-arguments.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var args, dummy; - args = (function () { return arguments; }()); - dummy = { '0': 1, '1': 2 }; - Object.defineProperty(dummy, 'length', { value: 2 }); - a(t(args), true, "Arguments"); - a(t(dummy), false, "Dummy"); - a(t([]), false, "Array"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/function/is-function.js b/tools/eslint/node_modules/es5-ext/test/function/is-function.js deleted file mode 100644 index 83acc42f9a..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/function/is-function.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -var o = { call: Function.prototype.call, apply: Function.prototype.apply }; - -module.exports = function (t, a) { - a(t(function () {}), true, "Function is function"); - a(t(o), false, "Plain object is not function"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/function/noop.js b/tools/eslint/node_modules/es5-ext/test/function/noop.js deleted file mode 100644 index 4305c6fcfd..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/function/noop.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(typeof t(1, 2, 3), 'undefined'); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/function/pluck.js b/tools/eslint/node_modules/es5-ext/test/function/pluck.js deleted file mode 100644 index 5bf9583ad5..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/function/pluck.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -var o = { foo: 'bar' }; - -module.exports = function (t, a) { - a(t('foo')(o), o.foo); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/function/valid-function.js b/tools/eslint/node_modules/es5-ext/test/function/valid-function.js deleted file mode 100644 index 59b16233b3..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/function/valid-function.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var f = function () {}; - a(t(f), f, "Function"); - f = new Function(); - a(t(f), f, "Function"); - a.throws(function () { - t({}); - }, "Object"); - a.throws(function () { - t(/re/); - }, "RegExp"); - a.throws(function () { - t({ call: function () { return 20; } }); - }, "Plain object"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/global.js b/tools/eslint/node_modules/es5-ext/test/global.js deleted file mode 100644 index 1f452aefb0..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/global.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a.ok(t && typeof t === 'object'); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/iterable/for-each.js b/tools/eslint/node_modules/es5-ext/test/iterable/for-each.js deleted file mode 100644 index 0fed8ad898..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/iterable/for-each.js +++ /dev/null @@ -1,40 +0,0 @@ -'use strict'; - -var ArrayIterator = require('es6-iterator/array') - - , slice = Array.prototype.slice; - -module.exports = function (t, a) { - var i = 0, x = ['raz', 'dwa', 'trzy'], y = {}; - t(x, function () { - a.deep(slice.call(arguments, 0, 1), [x[i]], "Array " + i + "#"); - a(this, y, "Array: context: " + (i++) + "#"); - }, y); - i = 0; - t((function () { return arguments; }('raz', 'dwa', 'trzy')), function () { - a.deep(slice.call(arguments, 0, 1), [x[i]], "Arguments" + i + "#"); - a(this, y, "Arguments: context: " + (i++) + "#"); - }, y); - i = 0; - t({ 0: 'raz', 1: 'dwa', 2: 'trzy', length: 3 }, function () { - a.deep(slice.call(arguments, 0, 1), [x[i]], "Array-like" + i + "#"); - a(this, y, "Array-like: context: " + (i++) + "#"); - }, y); - i = 0; - t(x = 'foo', function () { - a.deep(slice.call(arguments, 0, 1), [x[i]], "String " + i + "#"); - a(this, y, "Regular String: context: " + (i++) + "#"); - }, y); - i = 0; - x = ['r', '💩', 'z']; - t('r💩z', function () { - a.deep(slice.call(arguments, 0, 1), [x[i]], "String " + i + "#"); - a(this, y, "Unicode String: context: " + (i++) + "#"); - }, y); - i = 0; - t(new ArrayIterator(x), function () { - a.deep(slice.call(arguments, 0, 1), [x[i]], "Iterator " + i + "#"); - a(this, y, "Iterator: context: " + (i++) + "#"); - }, y); - -}; diff --git a/tools/eslint/node_modules/es5-ext/test/iterable/is.js b/tools/eslint/node_modules/es5-ext/test/iterable/is.js deleted file mode 100644 index c0d2a43ebf..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/iterable/is.js +++ /dev/null @@ -1,20 +0,0 @@ -'use strict'; - -var iteratorSymbol = require('es6-symbol').iterator; - -module.exports = function (t, a) { - var x; - a(t([]), true, "Array"); - a(t(""), true, "String"); - a(t((function () { return arguments; }())), true, "Arguments"); - a(t({ length: 0 }), true, "List object"); - a(t(function () {}), false, "Function"); - a(t({}), false, "Plain object"); - a(t(/raz/), false, "Regexp"); - a(t(), false, "No argument"); - a(t(null), false, "Null"); - a(t(undefined), false, "Undefined"); - x = {}; - x[iteratorSymbol] = function () {}; - a(t(x), true, "Iterable"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/iterable/validate-object.js b/tools/eslint/node_modules/es5-ext/test/iterable/validate-object.js deleted file mode 100644 index da12529bc0..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/iterable/validate-object.js +++ /dev/null @@ -1,20 +0,0 @@ -'use strict'; - -var iteratorSymbol = require('es6-symbol').iterator; - -module.exports = function (t, a) { - var x; - a.throws(function () { t(0); }, TypeError, "0"); - a.throws(function () { t(false); }, TypeError, "false"); - a.throws(function () { t(''); }, TypeError, "String"); - a.throws(function () { t({}); }, TypeError, "Plain Object"); - a.throws(function () { t(function () {}); }, TypeError, "Function"); - a(t(x = new String('raz')), x, "String object"); //jslint: ignore - - a(t(x = { length: 1 }), x, "Array like"); - a.throws(function () { t(); }, TypeError, "Undefined"); - a.throws(function () { t(null); }, TypeError, "null"); - x = {}; - x[iteratorSymbol] = function () {}; - a(t(x), x, "Iterable"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/iterable/validate.js b/tools/eslint/node_modules/es5-ext/test/iterable/validate.js deleted file mode 100644 index bcc2ad3d0a..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/iterable/validate.js +++ /dev/null @@ -1,20 +0,0 @@ -'use strict'; - -var iteratorSymbol = require('es6-symbol').iterator; - -module.exports = function (t, a) { - var x; - a.throws(function () { t(0); }, TypeError, "0"); - a.throws(function () { t(false); }, TypeError, "false"); - a(t(''), '', "''"); - a.throws(function () { t({}); }, TypeError, "Plain Object"); - a.throws(function () { t(function () {}); }, TypeError, "Function"); - a(t(x = new String('raz')), x, "String object"); //jslint: ignore - - a(t(x = { length: 1 }), x, "Array like"); - a.throws(function () { t(); }, TypeError, "Undefined"); - a.throws(function () { t(null); }, TypeError, "null"); - x = {}; - x[iteratorSymbol] = function () {}; - a(t(x), x, "Iterable"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/_pack-ieee754.js b/tools/eslint/node_modules/es5-ext/test/math/_pack-ieee754.js deleted file mode 100644 index 9041431d77..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/_pack-ieee754.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a.deep(t(1.337, 8, 23), [63, 171, 34, 209]); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/_unpack-ieee754.js b/tools/eslint/node_modules/es5-ext/test/math/_unpack-ieee754.js deleted file mode 100644 index ca30b8208d..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/_unpack-ieee754.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a.deep(t([63, 171, 34, 209], 8, 23), 1.3370000123977661); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/acosh/implement.js b/tools/eslint/node_modules/es5-ext/test/math/acosh/implement.js deleted file mode 100644 index 01fb6d0822..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/acosh/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../math/acosh/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/acosh/index.js b/tools/eslint/node_modules/es5-ext/test/math/acosh/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/acosh/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/math/acosh/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/acosh/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/acosh/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/acosh/shim.js b/tools/eslint/node_modules/es5-ext/test/math/acosh/shim.js deleted file mode 100644 index 3d710c7930..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/acosh/shim.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({}), NaN, "NaN"); - a(t(-1), NaN, "Negative"); - a(t(0), NaN, "Zero"); - a(t(0.5), NaN, "Below 1"); - a(t(1), 0, "1"); - a(t(2), 1.3169578969248166, "Other"); - a(t(Infinity), Infinity, "Infinity"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/asinh/implement.js b/tools/eslint/node_modules/es5-ext/test/math/asinh/implement.js deleted file mode 100644 index d1fceceee1..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/asinh/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../math/asinh/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/asinh/index.js b/tools/eslint/node_modules/es5-ext/test/math/asinh/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/asinh/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/math/asinh/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/asinh/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/asinh/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/asinh/shim.js b/tools/eslint/node_modules/es5-ext/test/math/asinh/shim.js deleted file mode 100644 index d9fbe49edc..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/asinh/shim.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({}), NaN, "NaN"); - a(t(0), 0, "Zero"); - a(t(Infinity), Infinity, "Infinity"); - a(t(-Infinity), -Infinity, "-Infinity"); - a(t(-2), -1.4436354751788103, "Negative"); - a(t(2), 1.4436354751788103, "Positive"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/atanh/implement.js b/tools/eslint/node_modules/es5-ext/test/math/atanh/implement.js deleted file mode 100644 index cba8fad83e..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/atanh/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../math/atanh/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/atanh/index.js b/tools/eslint/node_modules/es5-ext/test/math/atanh/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/atanh/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/math/atanh/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/atanh/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/atanh/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/atanh/shim.js b/tools/eslint/node_modules/es5-ext/test/math/atanh/shim.js deleted file mode 100644 index a857b49668..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/atanh/shim.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({}), NaN, "NaN"); - a(t(-2), NaN, "Less than -1"); - a(t(2), NaN, "Greater than 1"); - a(t(-1), -Infinity, "-1"); - a(t(1), Infinity, "1"); - a(t(0), 0, "Zero"); - a(t(0.5), 0.5493061443340549, "Ohter"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/cbrt/implement.js b/tools/eslint/node_modules/es5-ext/test/math/cbrt/implement.js deleted file mode 100644 index 374d4b383f..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/cbrt/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../math/cbrt/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/cbrt/index.js b/tools/eslint/node_modules/es5-ext/test/math/cbrt/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/cbrt/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/math/cbrt/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/cbrt/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/cbrt/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/cbrt/shim.js b/tools/eslint/node_modules/es5-ext/test/math/cbrt/shim.js deleted file mode 100644 index 43ab68b848..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/cbrt/shim.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({}), NaN, "NaN"); - a(t(0), 0, "Zero"); - a(t(Infinity), Infinity, "Infinity"); - a(t(-Infinity), -Infinity, "-Infinity"); - a(t(-1), -1, "-1"); - a(t(1), 1, "1"); - a(t(2), 1.2599210498948732, "Ohter"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/clz32/implement.js b/tools/eslint/node_modules/es5-ext/test/math/clz32/implement.js deleted file mode 100644 index 44f8815526..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/clz32/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../math/clz32/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/clz32/index.js b/tools/eslint/node_modules/es5-ext/test/math/clz32/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/clz32/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/math/clz32/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/clz32/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/clz32/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/clz32/shim.js b/tools/eslint/node_modules/es5-ext/test/math/clz32/shim.js deleted file mode 100644 index a769b39b85..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/clz32/shim.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t(1), 31, "1"); - a(t(1000), 22, "1000"); - a(t(), 32, "No arguments"); - a(t(Infinity), 32, "Infinity"); - a(t(-Infinity), 32, "-Infinity"); - a(t("foo"), 32, "String"); - a(t(true), 31, "Boolean"); - a(t(3.5), 30, "Float"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/cosh/implement.js b/tools/eslint/node_modules/es5-ext/test/math/cosh/implement.js deleted file mode 100644 index f3c712b1df..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/cosh/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../math/cosh/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/cosh/index.js b/tools/eslint/node_modules/es5-ext/test/math/cosh/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/cosh/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/math/cosh/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/cosh/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/cosh/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/cosh/shim.js b/tools/eslint/node_modules/es5-ext/test/math/cosh/shim.js deleted file mode 100644 index 419c12367d..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/cosh/shim.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({}), NaN, "NaN"); - a(t(0), 1, "Zero"); - a(t(Infinity), Infinity, "Infinity"); - a(t(-Infinity), Infinity, "-Infinity"); - a(t(1), 1.5430806348152437, "1"); - a(t(Number.MAX_VALUE), Infinity); - a(t(-Number.MAX_VALUE), Infinity); - a(t(Number.MIN_VALUE), 1); - a(t(-Number.MIN_VALUE), 1); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/expm1/implement.js b/tools/eslint/node_modules/es5-ext/test/math/expm1/implement.js deleted file mode 100644 index c21296725d..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/expm1/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../math/expm1/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/expm1/index.js b/tools/eslint/node_modules/es5-ext/test/math/expm1/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/expm1/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/math/expm1/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/expm1/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/expm1/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/expm1/shim.js b/tools/eslint/node_modules/es5-ext/test/math/expm1/shim.js deleted file mode 100644 index 15f0e796ce..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/expm1/shim.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({}), NaN, "NaN"); - a(t(0), 0, "Zero"); - a(t(Infinity), Infinity, "Infinity"); - a(t(-Infinity), -1, "-Infinity"); - a(t(1).toFixed(15), '1.718281828459045', "1"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/fround/implement.js b/tools/eslint/node_modules/es5-ext/test/math/fround/implement.js deleted file mode 100644 index c909af7c30..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/fround/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../math/fround/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/fround/index.js b/tools/eslint/node_modules/es5-ext/test/math/fround/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/fround/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/math/fround/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/fround/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/fround/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/fround/shim.js b/tools/eslint/node_modules/es5-ext/test/math/fround/shim.js deleted file mode 100644 index 4ef6d4ea9b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/fround/shim.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({}), NaN, "NaN"); - a(t(0), 0, "Zero"); - a(t(Infinity), Infinity, "Infinity"); - a(t(-Infinity), -Infinity, "-Infinity"); - a(t(1.337), 1.3370000123977661, "1"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/hypot/implement.js b/tools/eslint/node_modules/es5-ext/test/math/hypot/implement.js deleted file mode 100644 index 99466464c1..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/hypot/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../math/hypot/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/hypot/index.js b/tools/eslint/node_modules/es5-ext/test/math/hypot/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/hypot/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/math/hypot/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/hypot/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/hypot/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/hypot/shim.js b/tools/eslint/node_modules/es5-ext/test/math/hypot/shim.js deleted file mode 100644 index 91d950a5d3..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/hypot/shim.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t(), 0, "No arguments"); - a(t(0, -0, 0), 0, "Zeros"); - a(t(4, NaN, Infinity), Infinity, "Infinity"); - a(t(4, NaN, -Infinity), Infinity, "Infinity"); - a(t(4, NaN, 34), NaN, "NaN"); - a(t(3, 4), 5, "#1"); - a(t(3, 4, 5), 7.0710678118654755, "#2"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/imul/implement.js b/tools/eslint/node_modules/es5-ext/test/math/imul/implement.js deleted file mode 100644 index 7b2a2a6165..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/imul/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../math/imul/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/imul/index.js b/tools/eslint/node_modules/es5-ext/test/math/imul/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/imul/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/math/imul/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/imul/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/imul/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/imul/shim.js b/tools/eslint/node_modules/es5-ext/test/math/imul/shim.js deleted file mode 100644 index a2ca7fe783..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/imul/shim.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t(), 0, "No arguments"); - a(t(0, 0), 0, "Zeros"); - a(t(2, 4), 8, "#1"); - a(t(-1, 8), -8, "#2"); - a(t(0xfffffffe, 5), -10, "#3"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/log10/implement.js b/tools/eslint/node_modules/es5-ext/test/math/log10/implement.js deleted file mode 100644 index 4b3b4a4569..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/log10/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../math/log10/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/log10/index.js b/tools/eslint/node_modules/es5-ext/test/math/log10/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/log10/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/math/log10/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/log10/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/log10/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/log10/shim.js b/tools/eslint/node_modules/es5-ext/test/math/log10/shim.js deleted file mode 100644 index 5fa0d5be3a..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/log10/shim.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({}), NaN, "NaN"); - a(t(-0.5), NaN, "Less than 0"); - a(t(0), -Infinity, "0"); - a(t(1), 0, "1"); - a(t(Infinity), Infinity, "Infinity"); - a(t(2), 0.3010299956639812, "Other"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/log1p/implement.js b/tools/eslint/node_modules/es5-ext/test/math/log1p/implement.js deleted file mode 100644 index 5d269bd3ea..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/log1p/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../math/log1p/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/log1p/index.js b/tools/eslint/node_modules/es5-ext/test/math/log1p/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/log1p/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/math/log1p/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/log1p/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/log1p/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/log1p/shim.js b/tools/eslint/node_modules/es5-ext/test/math/log1p/shim.js deleted file mode 100644 index d495ce0496..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/log1p/shim.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({}), NaN, "NaN"); - a(t(-1.5), NaN, "Less than -1"); - a(t(-1), -Infinity, "-1"); - a(t(0), 0, "0"); - a(t(Infinity), Infinity, "Infinity"); - a(t(1), 0.6931471805599453, "Other"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/log2/implement.js b/tools/eslint/node_modules/es5-ext/test/math/log2/implement.js deleted file mode 100644 index 92b501ac72..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/log2/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../math/log2/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/log2/index.js b/tools/eslint/node_modules/es5-ext/test/math/log2/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/log2/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/math/log2/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/log2/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/log2/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/log2/shim.js b/tools/eslint/node_modules/es5-ext/test/math/log2/shim.js deleted file mode 100644 index faa9c32a85..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/log2/shim.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({}), NaN, "NaN"); - a(t(-0.5), NaN, "Less than 0"); - a(t(0), -Infinity, "0"); - a(t(1), 0, "1"); - a(t(Infinity), Infinity, "Infinity"); - a(t(3).toFixed(15), '1.584962500721156', "Other"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/sign/implement.js b/tools/eslint/node_modules/es5-ext/test/math/sign/implement.js deleted file mode 100644 index 5875c42d60..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/sign/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../math/sign/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/sign/index.js b/tools/eslint/node_modules/es5-ext/test/math/sign/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/sign/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/math/sign/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/sign/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/sign/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/sign/shim.js b/tools/eslint/node_modules/es5-ext/test/math/sign/shim.js deleted file mode 100644 index b6b89c1588..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/sign/shim.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -var is = require('../../../object/is'); - -module.exports = function (t, a) { - a(is(t(0), +0), true, "+0"); - a(is(t(-0), -0), true, "-0"); - a(t({}), NaN, true, "NaN"); - a(t(-234234234), -1, "Negative"); - a(t(234234234), 1, "Positive"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/sinh/implement.js b/tools/eslint/node_modules/es5-ext/test/math/sinh/implement.js deleted file mode 100644 index e52089e450..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/sinh/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../math/sinh/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/sinh/index.js b/tools/eslint/node_modules/es5-ext/test/math/sinh/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/sinh/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/math/sinh/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/sinh/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/sinh/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/sinh/shim.js b/tools/eslint/node_modules/es5-ext/test/math/sinh/shim.js deleted file mode 100644 index 4f63b59e73..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/sinh/shim.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({}), NaN, "NaN"); - a(t(0), 0, "Zero"); - a(t(Infinity), Infinity, "Infinity"); - a(t(-Infinity), -Infinity, "-Infinity"); - a(t(1), 1.1752011936438014, "1"); - a(t(Number.MAX_VALUE), Infinity); - a(t(-Number.MAX_VALUE), -Infinity); - a(t(Number.MIN_VALUE), 5e-324); - a(t(-Number.MIN_VALUE), -5e-324); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/tanh/implement.js b/tools/eslint/node_modules/es5-ext/test/math/tanh/implement.js deleted file mode 100644 index a96bf19336..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/tanh/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../math/tanh/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/tanh/index.js b/tools/eslint/node_modules/es5-ext/test/math/tanh/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/tanh/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/math/tanh/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/tanh/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/tanh/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/tanh/shim.js b/tools/eslint/node_modules/es5-ext/test/math/tanh/shim.js deleted file mode 100644 index 2c67aaf470..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/tanh/shim.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({}), NaN, "NaN"); - a(t(0), 0, "Zero"); - a(t(Infinity), 1, "Infinity"); - a(t(-Infinity), -1, "-Infinity"); - a(t(1), 0.7615941559557649, "1"); - a(t(Number.MAX_VALUE), 1); - a(t(-Number.MAX_VALUE), -1); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/math/trunc/implement.js b/tools/eslint/node_modules/es5-ext/test/math/trunc/implement.js deleted file mode 100644 index 1830e61f69..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/trunc/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../math/trunc/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/trunc/index.js b/tools/eslint/node_modules/es5-ext/test/math/trunc/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/trunc/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/math/trunc/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/math/trunc/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/trunc/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/math/trunc/shim.js b/tools/eslint/node_modules/es5-ext/test/math/trunc/shim.js deleted file mode 100644 index 9e5eed7910..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/math/trunc/shim.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -var is = require('../../../object/is'); - -module.exports = function (t, a) { - a(t({}), NaN, "NaN"); - a(t(0), 0, "Zero"); - a(t(Infinity), Infinity, "Infinity"); - a(t(-Infinity), -Infinity, "-Infinity"); - a(is(t(0.234), 0), true, "0"); - a(is(t(-0.234), -0), true, "-0"); - a(t(13.7), 13, "Positive #1"); - a(t(12.3), 12, "Positive #2"); - a(t(-12.3), -12, "Negative #1"); - a(t(-14.7), -14, "Negative #2"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/number/#/pad.js b/tools/eslint/node_modules/es5-ext/test/number/#/pad.js deleted file mode 100644 index e020823533..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/#/pad.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call(78, 4), '0078'); - a(t.call(65.12323, 4, 3), '0065.123', "Precision"); - a(t.call(65, 4, 3), '0065.000', "Precision integer"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/number/epsilon/implement.js b/tools/eslint/node_modules/es5-ext/test/number/epsilon/implement.js deleted file mode 100644 index 574da75dce..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/epsilon/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../number/epsilon/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/number/epsilon/index.js b/tools/eslint/node_modules/es5-ext/test/number/epsilon/index.js deleted file mode 100644 index c892fd47d4..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/epsilon/index.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(typeof t, 'number'); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/number/epsilon/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/number/epsilon/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/epsilon/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-finite/implement.js b/tools/eslint/node_modules/es5-ext/test/number/is-finite/implement.js deleted file mode 100644 index b35345fa6e..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/is-finite/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../number/is-finite/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-finite/index.js b/tools/eslint/node_modules/es5-ext/test/number/is-finite/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/is-finite/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-finite/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/number/is-finite/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/is-finite/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-finite/shim.js b/tools/eslint/node_modules/es5-ext/test/number/is-finite/shim.js deleted file mode 100644 index 5205d1c260..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/is-finite/shim.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t(2), true, "Number"); - a(t('23'), false, "Not numeric"); - a(t(NaN), false, "NaN"); - a(t(Infinity), false, "Infinity"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-integer/implement.js b/tools/eslint/node_modules/es5-ext/test/number/is-integer/implement.js deleted file mode 100644 index 127149ceed..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/is-integer/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../number/is-integer/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-integer/index.js b/tools/eslint/node_modules/es5-ext/test/number/is-integer/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/is-integer/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-integer/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/number/is-integer/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/is-integer/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-integer/shim.js b/tools/eslint/node_modules/es5-ext/test/number/is-integer/shim.js deleted file mode 100644 index 3f3985c3a0..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/is-integer/shim.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t(2), true, "Number"); - a(t(2.34), false, "Float"); - a(t('23'), false, "Not numeric"); - a(t(NaN), false, "NaN"); - a(t(Infinity), false, "Infinity"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-nan/implement.js b/tools/eslint/node_modules/es5-ext/test/number/is-nan/implement.js deleted file mode 100644 index 2f01d6d30a..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/is-nan/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../number/is-nan/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-nan/index.js b/tools/eslint/node_modules/es5-ext/test/number/is-nan/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/is-nan/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-nan/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/number/is-nan/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/is-nan/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-nan/shim.js b/tools/eslint/node_modules/es5-ext/test/number/is-nan/shim.js deleted file mode 100644 index 425723e74b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/is-nan/shim.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t(2), false, "Number"); - a(t({}), false, "Not numeric"); - a(t(NaN), true, "NaN"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-natural.js b/tools/eslint/node_modules/es5-ext/test/number/is-natural.js deleted file mode 100644 index d56f12042b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/is-natural.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t(2), true, "Number"); - a(t(-2), false, "Negative"); - a(t(2.34), false, "Float"); - a(t('23'), false, "Not numeric"); - a(t(NaN), false, "NaN"); - a(t(Infinity), false, "Infinity"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-number.js b/tools/eslint/node_modules/es5-ext/test/number/is-number.js deleted file mode 100644 index 275133476a..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/is-number.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t(0), true, "Zero"); - a(t(NaN), true, "NaN"); - a(t(Infinity), true, "Infinity"); - a(t(12), true, "Number"); - a(t(false), false, "Boolean"); - a(t(new Date()), false, "Date"); - a(t(new Number(2)), true, "Number object"); - a(t('asdfaf'), false, "String"); - a(t(''), false, "Empty String"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/implement.js b/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/implement.js deleted file mode 100644 index 33667e2e9a..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../number/is-safe-integer/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/index.js b/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/shim.js b/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/shim.js deleted file mode 100644 index 77e0667471..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/is-safe-integer/shim.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t(2), true, "Number"); - a(t(2.34), false, "Float"); - a(t(Math.pow(2, 53)), false, "Too large"); - a(t(Math.pow(2, 53) - 1), true, "Maximum"); - a(t('23'), false, "Not numeric"); - a(t(NaN), false, "NaN"); - a(t(Infinity), false, "Infinity"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/number/max-safe-integer/implement.js b/tools/eslint/node_modules/es5-ext/test/number/max-safe-integer/implement.js deleted file mode 100644 index bef00ca413..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/max-safe-integer/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../number/max-safe-integer/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/number/max-safe-integer/index.js b/tools/eslint/node_modules/es5-ext/test/number/max-safe-integer/index.js deleted file mode 100644 index c892fd47d4..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/max-safe-integer/index.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(typeof t, 'number'); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/number/max-safe-integer/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/number/max-safe-integer/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/max-safe-integer/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/number/min-safe-integer/implement.js b/tools/eslint/node_modules/es5-ext/test/number/min-safe-integer/implement.js deleted file mode 100644 index fa440248bf..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/min-safe-integer/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../number/min-safe-integer/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/number/min-safe-integer/index.js b/tools/eslint/node_modules/es5-ext/test/number/min-safe-integer/index.js deleted file mode 100644 index c892fd47d4..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/min-safe-integer/index.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(typeof t, 'number'); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/number/min-safe-integer/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/number/min-safe-integer/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/min-safe-integer/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/number/to-integer.js b/tools/eslint/node_modules/es5-ext/test/number/to-integer.js deleted file mode 100644 index ff326ba7a9..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/to-integer.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({}), 0, "NaN"); - a(t(20), 20, "Positive integer"); - a(t('-20'), -20, "String negative integer"); - a(t(Infinity), Infinity, "Infinity"); - a(t(15.343), 15, "Float"); - a(t(-15.343), -15, "Negative float"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/number/to-pos-integer.js b/tools/eslint/node_modules/es5-ext/test/number/to-pos-integer.js deleted file mode 100644 index 2f3b4e674e..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/to-pos-integer.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({}), 0, "NaN"); - a(t(20), 20, "Positive integer"); - a(t(-20), 0, "Negative integer"); - a(t(Infinity), Infinity, "Infinity"); - a(t(15.343), 15, "Float"); - a(t(-15.343), 0, "Negative float"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/number/to-uint32.js b/tools/eslint/node_modules/es5-ext/test/number/to-uint32.js deleted file mode 100644 index 00d05bdfe3..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/number/to-uint32.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({}), 0, "Not numeric"); - a(t(-4), 4294967292, "Negative"); - a(t(133432), 133432, "Positive"); - a(t(8589934592), 0, "Greater than maximum"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/_iterate.js b/tools/eslint/node_modules/es5-ext/test/object/_iterate.js deleted file mode 100644 index 179afed88e..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/_iterate.js +++ /dev/null @@ -1,30 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var o = { raz: 1, dwa: 2, trzy: 3 } - , o2 = {}, o3 = {}, arr, i = -1; - - t = t('forEach'); - t(o, function (value, name, self, index) { - o2[name] = value; - a(index, ++i, "Index"); - a(self, o, "Self"); - a(this, o3, "Scope"); - }, o3); - a.deep(o2, o); - - arr = []; - o2 = {}; - i = -1; - t(o, function (value, name, self, index) { - arr.push(value); - o2[name] = value; - a(index, ++i, "Index"); - a(self, o, "Self"); - a(this, o3, "Scope"); - }, o3, function (a, b) { - return o[b] - o[a]; - }); - a.deep(o2, o, "Sort by Values: Content"); - a.deep(arr, [3, 2, 1], "Sort by Values: Order"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/assign/implement.js b/tools/eslint/node_modules/es5-ext/test/object/assign/implement.js deleted file mode 100644 index 4006559418..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/assign/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../object/assign/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/object/assign/index.js b/tools/eslint/node_modules/es5-ext/test/object/assign/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/assign/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/object/assign/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/object/assign/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/assign/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/object/assign/shim.js b/tools/eslint/node_modules/es5-ext/test/object/assign/shim.js deleted file mode 100644 index 9afe5f658c..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/assign/shim.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var o1 = { a: 1, b: 2 } - , o2 = { b: 3, c: 4 }; - - a(t(o1, o2), o1, "Returns self"); - a.deep(o1, { a: 1, b: 3, c: 4 }, "Single: content"); - - a.deep(t({}, o1, o2), { a: 1, b: 3, c: 4 }, "Multi argument"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/clear.js b/tools/eslint/node_modules/es5-ext/test/object/clear.js deleted file mode 100644 index bfc08cc208..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/clear.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -var isEmpty = require('../../object/is-empty'); - -module.exports = function (t, a) { - var x = {}; - a(t(x), x, "Empty: Returns same object"); - a(isEmpty(x), true, "Empty: Not changed"); - x.foo = 'raz'; - x.bar = 'dwa'; - a(t(x), x, "Same object"); - a(isEmpty(x), true, "Emptied"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/compact.js b/tools/eslint/node_modules/es5-ext/test/object/compact.js deleted file mode 100644 index 9c9064c788..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/compact.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x = {}, y = {}, z; - z = t(x); - a.not(z, x, "Returns different object"); - a.deep(z, {}, "Empty on empty"); - - x = { foo: 'bar', a: 0, b: false, c: '', d: '0', e: null, bar: y, - elo: undefined }; - z = t(x); - a.deep(z, { foo: 'bar', a: 0, b: false, c: '', d: '0', bar: y }, - "Cleared null values"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/compare.js b/tools/eslint/node_modules/es5-ext/test/object/compare.js deleted file mode 100644 index cb9424109c..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/compare.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var d = new Date(); - - a.ok(t(12, 3) > 0, "Numbers"); - a.ok(t(2, 13) < 0, "Numbers #2"); - a.ok(t("aaa", "aa") > 0, "Strings"); - a.ok(t("aa", "ab") < 0, "Strings #2"); - a(t("aa", "aa"), 0, "Strings same"); - a(t(d, new Date(d.getTime())), 0, "Same date"); - a.ok(t(d, new Date(d.getTime() + 1)) < 0, "Different date"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/copy-deep.js b/tools/eslint/node_modules/es5-ext/test/object/copy-deep.js deleted file mode 100644 index 79e02be49e..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/copy-deep.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -var stringify = JSON.stringify; - -module.exports = function (t, a) { - var o = { 1: 'raz', 2: 'dwa', 3: 'trzy' } - , no = t(o); - - a.not(no, o, "Return different object"); - a(stringify(no), stringify(o), "Match properties and values"); - - o = { foo: 'bar', raz: { dwa: 'dwa', - trzy: { cztery: 'pięć', 'sześć': 'siedem' }, osiem: {}, - 'dziewięć': function () { } }, - 'dziesięć': 10, "jedenaście": ['raz', ['dwa', 'trzy', { elo: "true" }]] }; - o.raz.rec = o; - - no = t(o); - a.not(o.raz, no.raz, "Deep"); - a.not(o.raz.trzy, no.raz.trzy, "Deep #2"); - a(stringify(o.raz.trzy), stringify(no.raz.trzy), "Deep content"); - a(no.raz.rec, no, "Recursive"); - a.not(o.raz.osiem, no.raz.osiem, "Empty object"); - a(o.raz['dziewięć'], no.raz['dziewięć'], "Function"); - a.not(o['jedenaście'], no['jedenaście']); - a.not(o['jedenaście'][1], no['jedenaście'][1]); - a.not(o['jedenaście'][1][2], no['jedenaście'][1][2]); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/copy.js b/tools/eslint/node_modules/es5-ext/test/object/copy.js deleted file mode 100644 index 2f222ef809..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/copy.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -var stringify = JSON.stringify; - -module.exports = function (t, a) { - var o = { 1: 'raz', 2: 'dwa', 3: 'trzy' } - , no = t(o); - - a.not(no, o, "Return different object"); - a(stringify(no), stringify(o), "Match properties and values"); - - o = { foo: 'bar', raz: { dwa: 'dwa', - trzy: { cztery: 'pięć', 'sześć': 'siedem' }, osiem: {}, - 'dziewięć': function () { } }, 'dziesięć': 10 }; - o.raz.rec = o; - - no = t(o); - a(o.raz, no.raz, "Shallow"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/count.js b/tools/eslint/node_modules/es5-ext/test/object/count.js deleted file mode 100644 index 494f4f1635..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/count.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({}), 0, "Empty"); - a(t({ raz: 1, dwa: null, trzy: undefined, cztery: 0 }), 4, - "Some properties"); - a(t(Object.defineProperties({}, { - raz: { value: 'raz' }, - dwa: { value: 'dwa', enumerable: true } - })), 1, "Some properties hidden"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/create.js b/tools/eslint/node_modules/es5-ext/test/object/create.js deleted file mode 100644 index 8b7be21413..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/create.js +++ /dev/null @@ -1,22 +0,0 @@ -'use strict'; - -var setPrototypeOf = require('../../object/set-prototype-of') - - , getPrototypeOf = Object.getPrototypeOf; - -module.exports = function (t, a) { - var x = {}, obj; - - a(getPrototypeOf(t(x)), x, "Normal object"); - a(getPrototypeOf(t(null)), - (setPrototypeOf && setPrototypeOf.nullPolyfill) || null, "Null"); - - a.h1("Properties"); - a.h2("Normal object"); - a(getPrototypeOf(obj = t(x, { foo: { value: 'bar' } })), x, "Prototype"); - a(obj.foo, 'bar', "Property"); - a.h2("Null"); - a(getPrototypeOf(obj = t(null, { foo: { value: 'bar2' } })), - (setPrototypeOf && setPrototypeOf.nullPolyfill) || null, "Prototype"); - a(obj.foo, 'bar2', "Property"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/ensure-natural-number-value.js b/tools/eslint/node_modules/es5-ext/test/object/ensure-natural-number-value.js deleted file mode 100644 index dde23986ba..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/ensure-natural-number-value.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a.throws(function () { t(undefined); }, TypeError, "Undefined"); - a.throws(function () { t(null); }, TypeError, "Null"); - a(t(2), 2, "Number"); - a.throws(function () { t(-2); }, TypeError, "Negative"); - a.throws(function () { t(2.34); }, TypeError, "Float"); - a(t('23'), 23, "Numeric string"); - a.throws(function () { t(NaN); }, TypeError, "NaN"); - a.throws(function () { t(Infinity); }, TypeError, "Infinity"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/ensure-natural-number.js b/tools/eslint/node_modules/es5-ext/test/object/ensure-natural-number.js deleted file mode 100644 index 5ebed1e524..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/ensure-natural-number.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a.throws(function () { t(undefined); }, TypeError, "Undefined"); - a(t(null), 0, "Null"); - a(t(2), 2, "Number"); - a.throws(function () { t(-2); }, TypeError, "Negative"); - a.throws(function () { t(2.34); }, TypeError, "Float"); - a(t('23'), 23, "Numeric string"); - a.throws(function () { t(NaN); }, TypeError, "NaN"); - a.throws(function () { t(Infinity); }, TypeError, "Infinity"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/eq.js b/tools/eslint/node_modules/es5-ext/test/object/eq.js deleted file mode 100644 index 02b3f0027c..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/eq.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var o = {}; - a(t(o, {}), false, "Different objects"); - a(t(o, o), true, "Same objects"); - a(t('1', '1'), true, "Same primitive"); - a(t('1', 1), false, "Different primitive types"); - a(t(NaN, NaN), true, "NaN"); - a(t(0, 0), true, "0,0"); - a(t(0, -0), true, "0,-0"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/every.js b/tools/eslint/node_modules/es5-ext/test/object/every.js deleted file mode 100644 index 07d5bbbd61..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/every.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -var o = { 1: 1, 2: 2, 3: 3 }; - -module.exports = function (t, a) { - var o2 = {}; - t(o, function (value, name) { - o2[name] = value; - return true; - }); - a(JSON.stringify(o2), JSON.stringify(o), "Iterates"); - - a(t(o, function () { - return true; - }), true, "Succeeds"); - - a(t(o, function () { - return false; - }), false, "Fails"); - -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/filter.js b/tools/eslint/node_modules/es5-ext/test/object/filter.js deleted file mode 100644 index 7307da8640..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/filter.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a.deep(t({ 1: 1, 2: 2, 3: 3, 4: 4 }, - function (value) { return Boolean(value % 2); }), { 1: 1, 3: 3 }); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/find-key.js b/tools/eslint/node_modules/es5-ext/test/object/find-key.js deleted file mode 100644 index cca834d936..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/find-key.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -var o = { 1: 1, 2: 2, 3: 3 }; - -module.exports = function (t, a) { - var o2 = {}, i = 0; - t(o, function (value, name) { - o2[name] = value; - return false; - }); - a(JSON.stringify(o2), JSON.stringify(o), "Iterates"); - - a(t(o, function () { - ++i; - return true; - }), '1', "Finds"); - a(i, 1, "Stops iteration after condition is met"); - - a(t(o, function () { - return false; - }), undefined, "Fails"); - -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/find.js b/tools/eslint/node_modules/es5-ext/test/object/find.js deleted file mode 100644 index b6ad60a542..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/find.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -var o = { 1: 1, 2: 2, 3: 3 }; - -module.exports = function (t, a) { - var o2 = {}, i = 0; - t(o, function (value, name) { - o2[name] = value; - return false; - }); - a(JSON.stringify(o2), JSON.stringify(o), "Iterates"); - - a(t(o, function () { - ++i; - return true; - }), 1, "Finds"); - a(i, 1, "Stops iteration after condition is met"); - - a(t(o, function () { - return false; - }), undefined, "Fails"); - -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/first-key.js b/tools/eslint/node_modules/es5-ext/test/object/first-key.js deleted file mode 100644 index 8169cd2353..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/first-key.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x = {}, y = Object.create(null); - a(t(x), null, "Normal: Empty"); - a(t(y), null, "Null extension: Empty"); - x.foo = 'raz'; - x.bar = 343; - a(['foo', 'bar'].indexOf(t(x)) !== -1, true, "Normal"); - y.elo = 'foo'; - y.mar = 'wew'; - a(['elo', 'mar'].indexOf(t(y)) !== -1, true, "Null extension"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/flatten.js b/tools/eslint/node_modules/es5-ext/test/object/flatten.js deleted file mode 100644 index ca342eab9c..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/flatten.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a.deep(t({ a: { aa: 1, ab: 2 }, b: { ba: 3, bb: 4 } }), - { aa: 1, ab: 2, ba: 3, bb: 4 }); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/for-each.js b/tools/eslint/node_modules/es5-ext/test/object/for-each.js deleted file mode 100644 index 8690d1e821..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/for-each.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var o = { raz: 1, dwa: 2, trzy: 3 } - , o2 = {}; - a(t(o, function (value, name) { - o2[name] = value; - }), undefined, "Return"); - a.deep(o2, o); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/get-property-names.js b/tools/eslint/node_modules/es5-ext/test/object/get-property-names.js deleted file mode 100644 index b91c3dd50e..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/get-property-names.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var o = { first: 1, second: 4 }, r1, r2; - o = Object.create(o, { - third: { value: null } - }); - o.first = 2; - o = Object.create(o); - o.fourth = 3; - - r1 = t(o); - r1.sort(); - r2 = ['first', 'second', 'third', 'fourth'] - .concat(Object.getOwnPropertyNames(Object.prototype)); - r2.sort(); - a.deep(r1, r2); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/is-array-like.js b/tools/eslint/node_modules/es5-ext/test/object/is-array-like.js deleted file mode 100644 index 6295973ca8..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/is-array-like.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t([]), true, "Array"); - a(t(""), true, "String"); - a(t((function () { return arguments; }())), true, "Arguments"); - a(t({ length: 0 }), true, "List object"); - a(t(function () {}), false, "Function"); - a(t({}), false, "Plain object"); - a(t(/raz/), false, "Regexp"); - a(t(), false, "No argument"); - a(t(null), false, "Null"); - a(t(undefined), false, "Undefined"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/is-callable.js b/tools/eslint/node_modules/es5-ext/test/object/is-callable.js deleted file mode 100644 index 625e221d2c..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/is-callable.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t(function () {}), true, "Function"); - a(t({}), false, "Object"); - a(t(), false, "Undefined"); - a(t(null), false, "Null"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/is-copy-deep.js b/tools/eslint/node_modules/es5-ext/test/object/is-copy-deep.js deleted file mode 100644 index 4f14cbbe81..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/is-copy-deep.js +++ /dev/null @@ -1,46 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x, y; - - a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2, 3: 3 }), true, "Same"); - a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2, 3: 4 }), false, - "Different property value"); - a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2 }), false, - "Property only in source"); - a(t({ 1: 1, 2: 2 }, { 1: 1, 2: 2, 3: 4 }), false, - "Property only in target"); - - a(t("raz", "dwa"), false, "String: diff"); - a(t("raz", "raz"), true, "String: same"); - a(t("32", 32), false, "String & Number"); - - a(t([1, 'raz', true], [1, 'raz', true]), true, "Array: same"); - a(t([1, 'raz', undefined], [1, 'raz']), false, "Array: diff"); - a(t(['foo'], ['one']), false, "Array: One value comparision"); - - x = { foo: { bar: { mar: {} } } }; - y = { foo: { bar: { mar: {} } } }; - a(t(x, y), true, "Deep"); - - a(t({ foo: { bar: { mar: 'foo' } } }, { foo: { bar: { mar: {} } } }), - false, "Deep: false"); - - x = { foo: { bar: { mar: {} } } }; - x.rec = { foo: x }; - - y = { foo: { bar: { mar: {} } } }; - y.rec = { foo: x }; - - a(t(x, y), true, "Object: Infinite Recursion: Same #1"); - - x.rec.foo = y; - a(t(x, y), true, "Object: Infinite Recursion: Same #2"); - - x.rec.foo = x; - y.rec.foo = y; - a(t(x, y), true, "Object: Infinite Recursion: Same #3"); - - y.foo.bar.mar = 'raz'; - a(t(x, y), false, "Object: Infinite Recursion: Diff"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/is-copy.js b/tools/eslint/node_modules/es5-ext/test/object/is-copy.js deleted file mode 100644 index 394e2ed94c..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/is-copy.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2, 3: 3 }), true, "Same"); - a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2, 3: 4 }), false, - "Different property value"); - a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2 }), false, - "Property only in source"); - a(t({ 1: 1, 2: 2 }, { 1: 1, 2: 2, 3: 4 }), false, - "Property only in target"); - - a(t("raz", "dwa"), false, "String: diff"); - a(t("raz", "raz"), true, "String: same"); - a(t("32", 32), false, "String & Number"); - - a(t([1, 'raz', true], [1, 'raz', true]), true, "Array: same"); - a(t([1, 'raz', undefined], [1, 'raz']), false, "Array: diff"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/is-empty.js b/tools/eslint/node_modules/es5-ext/test/object/is-empty.js deleted file mode 100644 index b560c2c36b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/is-empty.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({}), true, "Empty"); - a(t({ 1: 1 }), false, "Not empty"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/is-number-value.js b/tools/eslint/node_modules/es5-ext/test/object/is-number-value.js deleted file mode 100644 index 21b6b62032..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/is-number-value.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t(undefined), false, "Undefined"); - a(t(null), false, "Null"); - a(t(0), true, "Zero"); - a(t(NaN), false, "NaN"); - a(t(Infinity), true, "Infinity"); - a(t(12), true, "Number"); - a(t(false), true, "Boolean"); - a(t(new Date()), true, "Date"); - a(t(new Number(2)), true, "Number object"); - a(t('asdfaf'), false, "String"); - a(t(''), true, "Empty String"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/is-object.js b/tools/eslint/node_modules/es5-ext/test/object/is-object.js deleted file mode 100644 index 72c8aa6daf..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/is-object.js +++ /dev/null @@ -1,13 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t('arar'), false, "String"); - a(t(12), false, "Number"); - a(t(true), false, "Boolean"); - a(t(null), false, "Null"); - a(t(new Date()), true, "Date"); - a(t(new String('raz')), true, "String object"); - a(t({}), true, "Plain object"); - a(t(/a/), true, "Regular expression"); - a(t(function () {}), true, "Function"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/is-plain-object.js b/tools/eslint/node_modules/es5-ext/test/object/is-plain-object.js deleted file mode 100644 index e988829d55..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/is-plain-object.js +++ /dev/null @@ -1,18 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t({}), true, "Empty {} is plain object"); - a(t({ a: true }), true, "{} with property is plain object"); - a(t({ prototype: 1, constructor: 2, __proto__: 3 }), true, - "{} with any property keys is plain object"); - a(t(null), false, "Null is not plain object"); - a(t('string'), false, "Primitive is not plain object"); - a(t(function () {}), false, "Function is not plain object"); - a(t(Object.create({})), false, - "Object whose prototype is not Object.prototype is not plain object"); - a(t(Object.create(Object.prototype)), true, - "Object whose prototype is Object.prototype is plain object"); - a(t(Object.create(null)), true, - "Object whose prototype is null is plain object"); - a(t(Object.prototype), false, "Object.prototype"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/is.js b/tools/eslint/node_modules/es5-ext/test/object/is.js deleted file mode 100644 index 4f8948cbf3..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/is.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var o = {}; - a(t(o, {}), false, "Different objects"); - a(t(o, o), true, "Same objects"); - a(t('1', '1'), true, "Same primitive"); - a(t('1', 1), false, "Different primitive types"); - a(t(NaN, NaN), true, "NaN"); - a(t(0, 0), true, "0,0"); - a(t(0, -0), false, "0,-0"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/key-of.js b/tools/eslint/node_modules/es5-ext/test/object/key-of.js deleted file mode 100644 index a9225a048c..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/key-of.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x = {}, y = {} - , o = { foo: 'bar', raz: x, trzy: 'cztery', five: '6' }; - - a(t(o, 'bar'), 'foo', "First property"); - a(t(o, 6), null, "Primitive that's not there"); - a(t(o, x), 'raz', "Object"); - a(t(o, y), null, "Object that's not there"); - a(t(o, '6'), 'five', "Last property"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/keys/implement.js b/tools/eslint/node_modules/es5-ext/test/object/keys/implement.js deleted file mode 100644 index 179e1e5612..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/keys/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../object/keys/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/object/keys/index.js b/tools/eslint/node_modules/es5-ext/test/object/keys/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/keys/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/object/keys/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/object/keys/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/keys/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/object/keys/shim.js b/tools/eslint/node_modules/es5-ext/test/object/keys/shim.js deleted file mode 100644 index ed29eebcd7..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/keys/shim.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a.deep(t({ foo: 'bar' }), ['foo'], "Object"); - a.deep(t('raz'), ['0', '1', '2'], "Primitive"); - a.throws(function () { t(); }, TypeError, "Undefined"); - a.throws(function () { t(null); }, TypeError, "Undefined"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/map-keys.js b/tools/eslint/node_modules/es5-ext/test/object/map-keys.js deleted file mode 100644 index be84825b1b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/map-keys.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a.deep(t({ 1: 1, 2: 2, 3: 3 }, function (key, value) { - return 'x' + (key + value); - }), { x11: 1, x22: 2, x33: 3 }); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/map.js b/tools/eslint/node_modules/es5-ext/test/object/map.js deleted file mode 100644 index f9cc09c01b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/map.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var obj = { 1: 1, 2: 2, 3: 3 }; - a.deep(t(obj, function (value, key, context) { - a(context, obj, "Context argument"); - return (value + 1) + key; - }), { 1: '21', 2: '32', 3: '43' }); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/mixin-prototypes.js b/tools/eslint/node_modules/es5-ext/test/object/mixin-prototypes.js deleted file mode 100644 index d1c727a95a..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/mixin-prototypes.js +++ /dev/null @@ -1,67 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var o, o1, o2, x, y = {}, z = {}; - o = { inherited: true, visible: 23 }; - o1 = Object.create(o); - o1.visible = z; - o1.nonremovable = 'raz'; - Object.defineProperty(o1, 'hidden', { value: 'hidden' }); - - o2 = Object.defineProperties({}, { nonremovable: { value: y } }); - o2.other = 'other'; - - try { t(o2, o1); } catch (ignore) {} - - a(o2.visible, z, "Enumerable"); - a(o1.hidden, 'hidden', "Not Enumerable"); - a(o2.propertyIsEnumerable('visible'), true, "Enumerable is enumerable"); - a(o2.propertyIsEnumerable('hidden'), false, - "Not enumerable is not enumerable"); - - a(o2.inherited, true, "Extend deep"); - - a(o2.nonremovable, y, "Do not overwrite non configurable"); - a(o2.other, 'other', "Own kept"); - - x = {}; - t(x, o2); - try { t(x, o1); } catch (ignore) {} - - a(x.visible, z, "Enumerable"); - a(x.hidden, 'hidden', "Not Enumerable"); - a(x.propertyIsEnumerable('visible'), true, "Enumerable is enumerable"); - a(x.propertyIsEnumerable('hidden'), false, - "Not enumerable is not enumerable"); - - a(x.inherited, true, "Extend deep"); - - a(x.nonremovable, y, "Ignored non configurable"); - a(x.other, 'other', "Other"); - - x.visible = 3; - a(x.visible, 3, "Writable is writable"); - - x = {}; - t(x, o1); - a.throws(function () { - x.hidden = 3; - }, "Not writable is not writable"); - - x = {}; - t(x, o1); - delete x.visible; - a.ok(!x.hasOwnProperty('visible'), "Configurable is configurable"); - - x = {}; - t(x, o1); - a.throws(function () { - delete x.hidden; - }, "Not configurable is not configurable"); - - x = Object.defineProperty({}, 'foo', - { configurable: false, writable: true, enumerable: false, value: 'bar' }); - - try { t(x, { foo: 'lorem' }); } catch (ignore) {} - a(x.foo, 'bar', "Writable, not enumerable"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/mixin.js b/tools/eslint/node_modules/es5-ext/test/object/mixin.js deleted file mode 100644 index 866005b03d..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/mixin.js +++ /dev/null @@ -1,69 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var o, o1, o2, x, y = {}, z = {}; - o = { inherited: true }; - o1 = Object.create(o); - o1.visible = z; - o1.nonremovable = 'raz'; - Object.defineProperty(o1, 'hidden', { value: 'hidden' }); - - o2 = Object.defineProperties({}, { nonremovable: { value: y } }); - o2.other = 'other'; - - try { t(o2, o1); } catch (ignore) {} - - a(o2.visible, z, "Enumerable"); - a(o1.hidden, 'hidden', "Not Enumerable"); - a(o2.propertyIsEnumerable('visible'), true, "Enumerable is enumerable"); - a(o2.propertyIsEnumerable('hidden'), false, - "Not enumerable is not enumerable"); - - a(o2.hasOwnProperty('inherited'), false, "Extend only own"); - a(o2.inherited, undefined, "Extend ony own: value"); - - a(o2.nonremovable, y, "Do not overwrite non configurable"); - a(o2.other, 'other', "Own kept"); - - x = {}; - t(x, o2); - try { t(x, o1); } catch (ignore) {} - - a(x.visible, z, "Enumerable"); - a(x.hidden, 'hidden', "Not Enumerable"); - a(x.propertyIsEnumerable('visible'), true, "Enumerable is enumerable"); - a(x.propertyIsEnumerable('hidden'), false, - "Not enumerable is not enumerable"); - - a(x.hasOwnProperty('inherited'), false, "Extend only own"); - a(x.inherited, undefined, "Extend ony own: value"); - - a(x.nonremovable, y, "Ignored non configurable"); - a(x.other, 'other', "Other"); - - x.visible = 3; - a(x.visible, 3, "Writable is writable"); - - x = {}; - t(x, o1); - a.throws(function () { - x.hidden = 3; - }, "Not writable is not writable"); - - x = {}; - t(x, o1); - delete x.visible; - a.ok(!x.hasOwnProperty('visible'), "Configurable is configurable"); - - x = {}; - t(x, o1); - a.throws(function () { - delete x.hidden; - }, "Not configurable is not configurable"); - - x = Object.defineProperty({}, 'foo', - { configurable: false, writable: true, enumerable: false, value: 'bar' }); - - try { t(x, { foo: 'lorem' }); } catch (ignore) {} - a(x.foo, 'bar', "Writable, not enumerable"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/normalize-options.js b/tools/eslint/node_modules/es5-ext/test/object/normalize-options.js deleted file mode 100644 index 0d2d4da04a..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/normalize-options.js +++ /dev/null @@ -1,32 +0,0 @@ -'use strict'; - -var create = Object.create, defineProperty = Object.defineProperty; - -module.exports = function (t, a) { - var x = { foo: 'raz', bar: 'dwa' }, y; - y = t(x); - a.not(y, x, "Returns copy"); - a.deep(y, x, "Plain"); - - x = { raz: 'one', dwa: 'two' }; - defineProperty(x, 'get', { - configurable: true, - enumerable: true, - get: function () { return this.dwa; } - }); - x = create(x); - x.trzy = 'three'; - x.cztery = 'four'; - x = create(x); - x.dwa = 'two!'; - x.trzy = 'three!'; - x.piec = 'five'; - x.szesc = 'six'; - - a.deep(t(x), { raz: 'one', dwa: 'two!', trzy: 'three!', cztery: 'four', - piec: 'five', szesc: 'six', get: 'two!' }, "Deep object"); - - a.deep(t({ marko: 'raz', raz: 'foo' }, x, { szesc: 'elo', siedem: 'bibg' }), - { marko: 'raz', raz: 'one', dwa: 'two!', trzy: 'three!', cztery: 'four', - piec: 'five', szesc: 'elo', siedem: 'bibg', get: 'two!' }, "Multiple options"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/primitive-set.js b/tools/eslint/node_modules/es5-ext/test/object/primitive-set.js deleted file mode 100644 index 839857eab3..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/primitive-set.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -var getPropertyNames = require('../../object/get-property-names') - , isPlainObject = require('../../object/is-plain-object'); - -module.exports = function (t, a) { - var x = t(); - a(isPlainObject(x), true, "Plain object"); - a.deep(getPropertyNames(x), [], "No properties"); - x.foo = 'bar'; - a.deep(getPropertyNames(x), ['foo'], "Extensible"); - - a.deep(t('raz', 'dwa', 3), { raz: true, dwa: true, 3: true }, - "Arguments handling"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/safe-traverse.js b/tools/eslint/node_modules/es5-ext/test/object/safe-traverse.js deleted file mode 100644 index d30cdefe68..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/safe-traverse.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var obj = { foo: { bar: { lorem: 12 } } }; - a(t(obj), obj, "No props"); - a(t(obj, 'foo'), obj.foo, "One"); - a(t(obj, 'raz'), undefined, "One: Fail"); - a(t(obj, 'foo', 'bar'), obj.foo.bar, "Two"); - a(t(obj, 'dsd', 'raz'), undefined, "Two: Fail #1"); - a(t(obj, 'foo', 'raz'), undefined, "Two: Fail #2"); - a(t(obj, 'foo', 'bar', 'lorem'), obj.foo.bar.lorem, "Three"); - a(t(obj, 'dsd', 'raz', 'fef'), undefined, "Three: Fail #1"); - a(t(obj, 'foo', 'raz', 'asdf'), undefined, "Three: Fail #2"); - a(t(obj, 'foo', 'bar', 'asd'), undefined, "Three: Fail #3"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/serialize.js b/tools/eslint/node_modules/es5-ext/test/object/serialize.js deleted file mode 100644 index 43eed6a861..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/serialize.js +++ /dev/null @@ -1,25 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var fn = function (raz, dwa) { return raz + dwa; }; - a(t(), 'undefined', "Undefined"); - a(t(null), 'null', "Null"); - a(t(null), 'null', "Null"); - a(t('raz'), '"raz"', "String"); - a(t('raz"ddwa\ntrzy'), '"raz\\"ddwa\\ntrzy"', "String with escape"); - a(t(false), 'false', "Booelean"); - a(t(fn), String(fn), "Function"); - - a(t(/raz-dwa/g), '/raz-dwa/g', "RegExp"); - a(t(new Date(1234567)), 'new Date(1234567)', "Date"); - a(t([]), '[]', "Empty array"); - a(t([undefined, false, null, 'raz"ddwa\ntrzy', fn, /raz/g, new Date(1234567), ['foo']]), - '[undefined,false,null,"raz\\"ddwa\\ntrzy",' + String(fn) + - ',/raz/g,new Date(1234567),["foo"]]', "Rich Array"); - a(t({}), '{}', "Empty object"); - a(t({ raz: undefined, dwa: false, trzy: null, cztery: 'raz"ddwa\ntrzy', piec: fn, szesc: /raz/g, - siedem: new Date(1234567), osiem: ['foo', 32], dziewiec: { foo: 'bar', dwa: 343 } }), - '{"raz":undefined,"dwa":false,"trzy":null,"cztery":"raz\\"ddwa\\ntrzy","piec":' + String(fn) + - ',"szesc":/raz/g,"siedem":new Date(1234567),"osiem":["foo",32],' + - '"dziewiec":{"foo":"bar","dwa":343}}', "Rich object"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/implement.js b/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/implement.js deleted file mode 100644 index 30b2ac4b96..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/implement.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -var create = require('../../../object/create') - , isImplemented = require('../../../object/set-prototype-of/is-implemented'); - -module.exports = function (a) { a(isImplemented(create), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/index.js b/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/index.js deleted file mode 100644 index aec2605cc2..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/index.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -var create = require('../../../object/create') - - , getPrototypeOf = Object.getPrototypeOf; - -module.exports = function (t, a) { - var x = {}, y = {}; - - if (t === null) return; - a(t(x, y), x, "Return self object"); - a(getPrototypeOf(x), y, "Object"); - a.throws(function () { t(x); }, TypeError, "Undefined"); - a.throws(function () { t('foo'); }, TypeError, "Primitive"); - a(getPrototypeOf(t(x, null)), t.nullPolyfill || null, "Null"); - x = create(null); - a.h1("Change null prototype"); - a(t(x, y), x, "Result"); - a(getPrototypeOf(x), y, "Prototype"); - a.h1("Set null prototype"); - a(t(y, null), y, "Result"); - a(getPrototypeOf(y), t.nullPolyfill || null, "Prototype"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/shim.js b/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/shim.js deleted file mode 100644 index aec2605cc2..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/set-prototype-of/shim.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -var create = require('../../../object/create') - - , getPrototypeOf = Object.getPrototypeOf; - -module.exports = function (t, a) { - var x = {}, y = {}; - - if (t === null) return; - a(t(x, y), x, "Return self object"); - a(getPrototypeOf(x), y, "Object"); - a.throws(function () { t(x); }, TypeError, "Undefined"); - a.throws(function () { t('foo'); }, TypeError, "Primitive"); - a(getPrototypeOf(t(x, null)), t.nullPolyfill || null, "Null"); - x = create(null); - a.h1("Change null prototype"); - a(t(x, y), x, "Result"); - a(getPrototypeOf(x), y, "Prototype"); - a.h1("Set null prototype"); - a(t(y, null), y, "Result"); - a(getPrototypeOf(y), t.nullPolyfill || null, "Prototype"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/some.js b/tools/eslint/node_modules/es5-ext/test/object/some.js deleted file mode 100644 index 490431e7ac..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/some.js +++ /dev/null @@ -1,23 +0,0 @@ -'use strict'; - -var o = { 1: 1, 2: 2, 3: 3 }; - -module.exports = function (t, a) { - var o2 = {}, i = 0; - t(o, function (value, name) { - o2[name] = value; - return false; - }); - a(JSON.stringify(o2), JSON.stringify(o), "Iterates"); - - a(t(o, function () { - ++i; - return true; - }), true, "Succeeds"); - a(i, 1, "Stops iteration after condition is met"); - - a(t(o, function () { - return false; - }), false, "Fails"); - -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/to-array.js b/tools/eslint/node_modules/es5-ext/test/object/to-array.js deleted file mode 100644 index 1f4beef7ea..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/to-array.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var o = { 1: 1, 2: 2, 3: 3 }, o1 = {} - , o2 = t(o, function (value, name, self) { - a(self, o, "Self"); - a(this, o1, "Scope"); - return value + Number(name); - }, o1); - a.deep(o2, [2, 4, 6]); - - t(o).sort().forEach(function (item) { - a.deep(item, [item[0], o[item[0]]], "Default"); - }); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/unserialize.js b/tools/eslint/node_modules/es5-ext/test/object/unserialize.js deleted file mode 100644 index 405eef112f..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/unserialize.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var fn = function (raz, dwa) { return raz + dwa; }; - a(t('undefined'), undefined, "Undefined"); - a(t('null'), null, "Null"); - a(t('"raz"'), 'raz', "String"); - a(t('"raz\\"ddwa\\ntrzy"'), 'raz"ddwa\ntrzy', "String with escape"); - a(t('false'), false, "Booelean"); - a(String(t(String(fn))), String(fn), "Function"); - - a.deep(t('/raz-dwa/g'), /raz-dwa/g, "RegExp"); - a.deep(t('new Date(1234567)'), new Date(1234567), "Date"); - a.deep(t('[]'), [], "Empty array"); - a.deep(t('[undefined,false,null,"raz\\"ddwa\\ntrzy",/raz/g,new Date(1234567),["foo"]]'), - [undefined, false, null, 'raz"ddwa\ntrzy', /raz/g, new Date(1234567), ['foo']], "Rich Array"); - a.deep(t('{}'), {}, "Empty object"); - a.deep(t('{"raz":undefined,"dwa":false,"trzy":null,"cztery":"raz\\"ddwa\\ntrzy",' + - '"szesc":/raz/g,"siedem":new Date(1234567),"osiem":["foo",32],' + - '"dziewiec":{"foo":"bar","dwa":343}}'), - { raz: undefined, dwa: false, trzy: null, cztery: 'raz"ddwa\ntrzy', szesc: /raz/g, - siedem: new Date(1234567), osiem: ['foo', 32], dziewiec: { foo: 'bar', dwa: 343 } }, - "Rich object"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/valid-callable.js b/tools/eslint/node_modules/es5-ext/test/object/valid-callable.js deleted file mode 100644 index b40540b6ba..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/valid-callable.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var f = function () {}; - a(t(f), f, "Function"); - a.throws(function () { - t({}); - }, "Not Function"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/valid-object.js b/tools/eslint/node_modules/es5-ext/test/object/valid-object.js deleted file mode 100644 index eaa8e7bcb3..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/valid-object.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x; - a.throws(function () { t(0); }, TypeError, "0"); - a.throws(function () { t(false); }, TypeError, "false"); - a.throws(function () { t(''); }, TypeError, "''"); - a(t(x = {}), x, "Object"); - a(t(x = function () {}), x, "Function"); - a(t(x = new String('raz')), x, "String object"); //jslint: ignore - a(t(x = new Date()), x, "Date"); - - a.throws(function () { t(); }, TypeError, "Undefined"); - a.throws(function () { t(null); }, TypeError, "null"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/valid-value.js b/tools/eslint/node_modules/es5-ext/test/object/valid-value.js deleted file mode 100644 index f1eeafa977..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/valid-value.js +++ /dev/null @@ -1,19 +0,0 @@ -'use strict'; - -var numIsNaN = require('../../number/is-nan'); - -module.exports = function (t, a) { - var x; - a(t(0), 0, "0"); - a(t(false), false, "false"); - a(t(''), '', "''"); - a(numIsNaN(t(NaN)), true, "NaN"); - a(t(x = {}), x, "{}"); - - a.throws(function () { - t(); - }, "Undefined"); - a.throws(function () { - t(null); - }, "null"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/validate-array-like-object.js b/tools/eslint/node_modules/es5-ext/test/object/validate-array-like-object.js deleted file mode 100644 index 2f3e31b442..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/validate-array-like-object.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x; - a.throws(function () { t(0); }, TypeError, "0"); - a.throws(function () { t(false); }, TypeError, "false"); - a.throws(function () { t(''); }, TypeError, "String"); - a.throws(function () { t({}); }, TypeError, "Plain Object"); - a.throws(function () { t(function () {}); }, TypeError, "Function"); - a(t(x = new String('raz')), x, "String object"); //jslint: ignore - - a(t(x = { length: 1 }), x, "Array like"); - a.throws(function () { t(); }, TypeError, "Undefined"); - a.throws(function () { t(null); }, TypeError, "null"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/validate-array-like.js b/tools/eslint/node_modules/es5-ext/test/object/validate-array-like.js deleted file mode 100644 index 53bd11249e..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/validate-array-like.js +++ /dev/null @@ -1,15 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x; - a.throws(function () { t(0); }, TypeError, "0"); - a.throws(function () { t(false); }, TypeError, "false"); - a(t(''), '', "''"); - a.throws(function () { t({}); }, TypeError, "Plain Object"); - a.throws(function () { t(function () {}); }, TypeError, "Function"); - a(t(x = new String('raz')), x, "String object"); //jslint: ignore - - a(t(x = { length: 1 }), x, "Array like"); - a.throws(function () { t(); }, TypeError, "Undefined"); - a.throws(function () { t(null); }, TypeError, "null"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/validate-stringifiable-value.js b/tools/eslint/node_modules/es5-ext/test/object/validate-stringifiable-value.js deleted file mode 100644 index ae9bd17a59..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/validate-stringifiable-value.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x; - a.throws(function () { t(); }, TypeError, "Undefined"); - a.throws(function () { t(null); }, TypeError, "Null"); - a(t(0), "0"); - a(t(false), "false"); - a(t(''), ""); - a(t({}), String({}), "Object"); - a(t(x = function () {}), String(x), "Function"); - a(t(x = new String('raz')), String(x), "String object"); //jslint: ignore - a(t(x = new Date()), String(x), "Date"); - - a.throws(function () { t(Object.create(null)); }, TypeError, "Null prototype object"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/object/validate-stringifiable.js b/tools/eslint/node_modules/es5-ext/test/object/validate-stringifiable.js deleted file mode 100644 index 4a46bb5219..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/object/validate-stringifiable.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var x; - a(t(), 'undefined', "Undefined"); - a(t(null), 'null', "Null"); - a(t(0), "0"); - a(t(false), "false"); - a(t(''), ""); - a(t({}), String({}), "Object"); - a(t(x = function () {}), String(x), "Function"); - a(t(x = new String('raz')), String(x), "String object"); //jslint: ignore - a(t(x = new Date()), String(x), "Date"); - - a.throws(function () { t(Object.create(null)); }, TypeError, "Null prototype object"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/index.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/index.js deleted file mode 100644 index ca2bd65061..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/index.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -var indexTest = require('tad/lib/utils/index-test') - - , path = require('path').resolve(__dirname, '../../../reg-exp/#'); - -module.exports = function (t, a, d) { - indexTest(indexTest.readDir(path).aside(function (data) { - delete data.sticky; - delete data.unicode; - }))(t, a, d); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/is-sticky.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/is-sticky.js deleted file mode 100644 index e154ac2916..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/is-sticky.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var re; - a(t.call(/raz/), false, "Normal"); - a(t.call(/raz/g), false, "Global"); - try { re = new RegExp('raz', 'y'); } catch (ignore) {} - if (!re) return; - a(t.call(re), true, "Sticky"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/is-unicode.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/is-unicode.js deleted file mode 100644 index 2ffb9e869b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/is-unicode.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var re; - a(t.call(/raz/), false, "Normal"); - a(t.call(/raz/g), false, "Global"); - try { re = new RegExp('raz', 'u'); } catch (ignore) {} - if (!re) return; - a(t.call(re), true, "Unicode"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/implement.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/implement.js deleted file mode 100644 index 89825a45f6..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../reg-exp/#/match/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/index.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/shim.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/shim.js deleted file mode 100644 index 5249139fff..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/match/shim.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var result = ['foo']; - result.index = 0; - result.input = 'foobar'; - a.deep(t.call(/foo/, 'foobar'), result); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/implement.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/implement.js deleted file mode 100644 index c32b23a6d0..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../reg-exp/#/replace/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/index.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/shim.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/shim.js deleted file mode 100644 index 2b378fd594..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/replace/shim.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call(/foo/, 'foobar', 'mar'), 'marbar'); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/implement.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/implement.js deleted file mode 100644 index ff1b8087f2..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../reg-exp/#/search/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/index.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/shim.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/shim.js deleted file mode 100644 index 596bcdb92e..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/search/shim.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call(/foo/, 'barfoo'), 3); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/implement.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/implement.js deleted file mode 100644 index 1cee441806..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../reg-exp/#/split/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/index.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/shim.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/shim.js deleted file mode 100644 index 6a95cd03d6..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/split/shim.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a.deep(t.call(/\|/, 'bar|foo'), ['bar', 'foo']); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/sticky/implement.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/sticky/implement.js deleted file mode 100644 index d94e7b98d8..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/sticky/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../reg-exp/#/sticky/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/sticky/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/sticky/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/sticky/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/unicode/implement.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/unicode/implement.js deleted file mode 100644 index 9b1aa0f2ab..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/unicode/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../reg-exp/#/unicode/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/unicode/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/#/unicode/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/#/unicode/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/escape.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/escape.js deleted file mode 100644 index 5b00f67f28..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/escape.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var str = "(?:^te|er)s{2}t\\[raz]+$"; - a(RegExp('^' + t(str) + '$').test(str), true); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/is-reg-exp.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/is-reg-exp.js deleted file mode 100644 index 785ca28c2e..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/is-reg-exp.js +++ /dev/null @@ -1,12 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t('arar'), false, "String"); - a(t(12), false, "Number"); - a(t(true), false, "Boolean"); - a(t(new Date()), false, "Date"); - a(t(new String('raz')), false, "String object"); - a(t({}), false, "Plain object"); - a(t(/a/), true, "Regular expression"); - a(t(new RegExp('a')), true, "Regular expression via constructor"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/reg-exp/valid-reg-exp.js b/tools/eslint/node_modules/es5-ext/test/reg-exp/valid-reg-exp.js deleted file mode 100644 index cd12cf126a..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/reg-exp/valid-reg-exp.js +++ /dev/null @@ -1,17 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var r = /raz/; - a(t(r), r, "Direct"); - r = new RegExp('foo'); - a(t(r), r, "Constructor"); - a.throws(function () { - t({}); - }, "Object"); - a.throws(function () { - t(function () {}); - }, "Function"); - a.throws(function () { - t({ exec: function () { return 20; } }); - }, "Plain object"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/implement.js b/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/implement.js deleted file mode 100644 index 09bf3361ac..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../string/#/@@iterator/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/index.js b/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/shim.js b/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/shim.js deleted file mode 100644 index 3b0e0b7547..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/@@iterator/shim.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - var it = t.call('r💩z'); - a.deep(it.next(), { done: false, value: 'r' }, "#1"); - a.deep(it.next(), { done: false, value: '💩' }, "#2"); - a.deep(it.next(), { done: false, value: 'z' }, "#3"); - a.deep(it.next(), { done: true, value: undefined }, "End"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/at.js b/tools/eslint/node_modules/es5-ext/test/string/#/at.js deleted file mode 100644 index 2447a9f64d..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/at.js +++ /dev/null @@ -1,97 +0,0 @@ -// See tests at https://github.com/mathiasbynens/String.prototype.at - -'use strict'; - -module.exports = function (t, a) { - a(t.length, 1, "Length"); - - a.h1("BMP"); - a(t.call('abc\uD834\uDF06def', -Infinity), '', "-Infinity"); - a(t.call('abc\uD834\uDF06def', -1), '', "-1"); - a(t.call('abc\uD834\uDF06def', -0), 'a', "-0"); - a(t.call('abc\uD834\uDF06def', +0), 'a', "+0"); - a(t.call('abc\uD834\uDF06def', 1), 'b', "1"); - a(t.call('abc\uD834\uDF06def', 3), '\uD834\uDF06', "3"); - a(t.call('abc\uD834\uDF06def', 4), '\uDF06', "4"); - a(t.call('abc\uD834\uDF06def', 5), 'd', "5"); - a(t.call('abc\uD834\uDF06def', 42), '', "42"); - a(t.call('abc\uD834\uDF06def', +Infinity), '', "+Infinity"); - a(t.call('abc\uD834\uDF06def', null), 'a', "null"); - a(t.call('abc\uD834\uDF06def', undefined), 'a', "undefined"); - a(t.call('abc\uD834\uDF06def'), 'a', "No argument"); - a(t.call('abc\uD834\uDF06def', false), 'a', "false"); - a(t.call('abc\uD834\uDF06def', NaN), 'a', "NaN"); - a(t.call('abc\uD834\uDF06def', ''), 'a', "Empty string"); - a(t.call('abc\uD834\uDF06def', '_'), 'a', "_"); - a(t.call('abc\uD834\uDF06def', '1'), 'b', "'1'"); - a(t.call('abc\uD834\uDF06def', []), 'a', "[]"); - a(t.call('abc\uD834\uDF06def', {}), 'a', "{}"); - a(t.call('abc\uD834\uDF06def', -0.9), 'a', "-0.9"); - a(t.call('abc\uD834\uDF06def', 1.9), 'b', "1.9"); - a(t.call('abc\uD834\uDF06def', 7.9), 'f', "7.9"); - a(t.call('abc\uD834\uDF06def', Math.pow(2, 32)), '', "Big number"); - - a.h1("Astral symbol"); - a(t.call('\uD834\uDF06def', -Infinity), '', "-Infinity"); - a(t.call('\uD834\uDF06def', -1), '', "-1"); - a(t.call('\uD834\uDF06def', -0), '\uD834\uDF06', "-0"); - a(t.call('\uD834\uDF06def', +0), '\uD834\uDF06', "+0"); - a(t.call('\uD834\uDF06def', 1), '\uDF06', "1"); - a(t.call('\uD834\uDF06def', 2), 'd', "2"); - a(t.call('\uD834\uDF06def', 3), 'e', "3"); - a(t.call('\uD834\uDF06def', 4), 'f', "4"); - a(t.call('\uD834\uDF06def', 42), '', "42"); - a(t.call('\uD834\uDF06def', +Infinity), '', "+Infinity"); - a(t.call('\uD834\uDF06def', null), '\uD834\uDF06', "null"); - a(t.call('\uD834\uDF06def', undefined), '\uD834\uDF06', "undefined"); - a(t.call('\uD834\uDF06def'), '\uD834\uDF06', "No arguments"); - a(t.call('\uD834\uDF06def', false), '\uD834\uDF06', "false"); - a(t.call('\uD834\uDF06def', NaN), '\uD834\uDF06', "NaN"); - a(t.call('\uD834\uDF06def', ''), '\uD834\uDF06', "Empty string"); - a(t.call('\uD834\uDF06def', '_'), '\uD834\uDF06', "_"); - a(t.call('\uD834\uDF06def', '1'), '\uDF06', "'1'"); - - a.h1("Lone high surrogates"); - a(t.call('\uD834abc', -Infinity), '', "-Infinity"); - a(t.call('\uD834abc', -1), '', "-1"); - a(t.call('\uD834abc', -0), '\uD834', "-0"); - a(t.call('\uD834abc', +0), '\uD834', "+0"); - a(t.call('\uD834abc', 1), 'a', "1"); - a(t.call('\uD834abc', 42), '', "42"); - a(t.call('\uD834abc', +Infinity), '', "Infinity"); - a(t.call('\uD834abc', null), '\uD834', "null"); - a(t.call('\uD834abc', undefined), '\uD834', "undefined"); - a(t.call('\uD834abc'), '\uD834', "No arguments"); - a(t.call('\uD834abc', false), '\uD834', "false"); - a(t.call('\uD834abc', NaN), '\uD834', "NaN"); - a(t.call('\uD834abc', ''), '\uD834', "Empty string"); - a(t.call('\uD834abc', '_'), '\uD834', "_"); - a(t.call('\uD834abc', '1'), 'a', "'a'"); - - a.h1("Lone low surrogates"); - a(t.call('\uDF06abc', -Infinity), '', "-Infinity"); - a(t.call('\uDF06abc', -1), '', "-1"); - a(t.call('\uDF06abc', -0), '\uDF06', "-0"); - a(t.call('\uDF06abc', +0), '\uDF06', "+0"); - a(t.call('\uDF06abc', 1), 'a', "1"); - a(t.call('\uDF06abc', 42), '', "42"); - a(t.call('\uDF06abc', +Infinity), '', "+Infinity"); - a(t.call('\uDF06abc', null), '\uDF06', "null"); - a(t.call('\uDF06abc', undefined), '\uDF06', "undefined"); - a(t.call('\uDF06abc'), '\uDF06', "No arguments"); - a(t.call('\uDF06abc', false), '\uDF06', "false"); - a(t.call('\uDF06abc', NaN), '\uDF06', "NaN"); - a(t.call('\uDF06abc', ''), '\uDF06', "Empty string"); - a(t.call('\uDF06abc', '_'), '\uDF06', "_"); - a(t.call('\uDF06abc', '1'), 'a', "'1'"); - - a.h1("Context"); - a.throws(function () { t.call(undefined); }, TypeError, "Undefined"); - a.throws(function () { t.call(undefined, 4); }, TypeError, - "Undefined + argument"); - a.throws(function () { t.call(null); }, TypeError, "Null"); - a.throws(function () { t.call(null, 4); }, TypeError, "Null + argument"); - a(t.call(42, 0), '4', "Number #1"); - a(t.call(42, 1), '2', "Number #2"); - a(t.call({ toString: function () { return 'abc'; } }, 2), 'c', "Object"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/camel-to-hyphen.js b/tools/eslint/node_modules/es5-ext/test/string/#/camel-to-hyphen.js deleted file mode 100644 index 8b47a8158a..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/camel-to-hyphen.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call('razDwaTRzy4yFoo45My'), 'raz-dwa-t-rzy4y-foo45-my'); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/capitalize.js b/tools/eslint/node_modules/es5-ext/test/string/#/capitalize.js deleted file mode 100644 index fa11ff8eef..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/capitalize.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call('raz'), 'Raz', "Word"); - a(t.call('BLA'), 'BLA', "Uppercase"); - a(t.call(''), '', "Empty"); - a(t.call('a'), 'A', "One letter"); - a(t.call('this is a test'), 'This is a test', "Sentence"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/case-insensitive-compare.js b/tools/eslint/node_modules/es5-ext/test/string/#/case-insensitive-compare.js deleted file mode 100644 index 01a90c39ce..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/case-insensitive-compare.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call("AA", "aa"), 0, "Same"); - a.ok(t.call("Amber", "zebra") < 0, "Less"); - a.ok(t.call("Zebra", "amber") > 0, "Greater"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/implement.js b/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/implement.js deleted file mode 100644 index 5e33cd715f..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/implement.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -var isImplemented = - require('../../../../string/#/code-point-at/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/index.js b/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/shim.js b/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/shim.js deleted file mode 100644 index 0df4751c56..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/code-point-at/shim.js +++ /dev/null @@ -1,81 +0,0 @@ -// Taken from: https://github.com/mathiasbynens/String.prototype.codePointAt -// /blob/master/tests/tests.js - -'use strict'; - -module.exports = function (t, a) { - a(t.length, 1, "Length"); - - // String that starts with a BMP symbol - a(t.call('abc\uD834\uDF06def', ''), 0x61); - a(t.call('abc\uD834\uDF06def', '_'), 0x61); - a(t.call('abc\uD834\uDF06def'), 0x61); - a(t.call('abc\uD834\uDF06def', -Infinity), undefined); - a(t.call('abc\uD834\uDF06def', -1), undefined); - a(t.call('abc\uD834\uDF06def', -0), 0x61); - a(t.call('abc\uD834\uDF06def', 0), 0x61); - a(t.call('abc\uD834\uDF06def', 3), 0x1D306); - a(t.call('abc\uD834\uDF06def', 4), 0xDF06); - a(t.call('abc\uD834\uDF06def', 5), 0x64); - a(t.call('abc\uD834\uDF06def', 42), undefined); - a(t.call('abc\uD834\uDF06def', Infinity), undefined); - a(t.call('abc\uD834\uDF06def', Infinity), undefined); - a(t.call('abc\uD834\uDF06def', NaN), 0x61); - a(t.call('abc\uD834\uDF06def', false), 0x61); - a(t.call('abc\uD834\uDF06def', null), 0x61); - a(t.call('abc\uD834\uDF06def', undefined), 0x61); - - // String that starts with an astral symbol - a(t.call('\uD834\uDF06def', ''), 0x1D306); - a(t.call('\uD834\uDF06def', '1'), 0xDF06); - a(t.call('\uD834\uDF06def', '_'), 0x1D306); - a(t.call('\uD834\uDF06def'), 0x1D306); - a(t.call('\uD834\uDF06def', -1), undefined); - a(t.call('\uD834\uDF06def', -0), 0x1D306); - a(t.call('\uD834\uDF06def', 0), 0x1D306); - a(t.call('\uD834\uDF06def', 1), 0xDF06); - a(t.call('\uD834\uDF06def', 42), undefined); - a(t.call('\uD834\uDF06def', false), 0x1D306); - a(t.call('\uD834\uDF06def', null), 0x1D306); - a(t.call('\uD834\uDF06def', undefined), 0x1D306); - - // Lone high surrogates - a(t.call('\uD834abc', ''), 0xD834); - a(t.call('\uD834abc', '_'), 0xD834); - a(t.call('\uD834abc'), 0xD834); - a(t.call('\uD834abc', -1), undefined); - a(t.call('\uD834abc', -0), 0xD834); - a(t.call('\uD834abc', 0), 0xD834); - a(t.call('\uD834abc', false), 0xD834); - a(t.call('\uD834abc', NaN), 0xD834); - a(t.call('\uD834abc', null), 0xD834); - a(t.call('\uD834abc', undefined), 0xD834); - - // Lone low surrogates - a(t.call('\uDF06abc', ''), 0xDF06); - a(t.call('\uDF06abc', '_'), 0xDF06); - a(t.call('\uDF06abc'), 0xDF06); - a(t.call('\uDF06abc', -1), undefined); - a(t.call('\uDF06abc', -0), 0xDF06); - a(t.call('\uDF06abc', 0), 0xDF06); - a(t.call('\uDF06abc', false), 0xDF06); - a(t.call('\uDF06abc', NaN), 0xDF06); - a(t.call('\uDF06abc', null), 0xDF06); - a(t.call('\uDF06abc', undefined), 0xDF06); - - a.throws(function () { t.call(undefined); }, TypeError); - a.throws(function () { t.call(undefined, 4); }, TypeError); - a.throws(function () { t.call(null); }, TypeError); - a.throws(function () { t.call(null, 4); }, TypeError); - a(t.call(42, 0), 0x34); - a(t.call(42, 1), 0x32); - a(t.call({ toString: function () { return 'abc'; } }, 2), 0x63); - - a.throws(function () { t.apply(undefined); }, TypeError); - a.throws(function () { t.apply(undefined, [4]); }, TypeError); - a.throws(function () { t.apply(null); }, TypeError); - a.throws(function () { t.apply(null, [4]); }, TypeError); - a(t.apply(42, [0]), 0x34); - a(t.apply(42, [1]), 0x32); - a(t.apply({ toString: function () { return 'abc'; } }, [2]), 0x63); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/contains/implement.js b/tools/eslint/node_modules/es5-ext/test/string/#/contains/implement.js deleted file mode 100644 index 220f50d467..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/contains/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../string/#/contains/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/contains/index.js b/tools/eslint/node_modules/es5-ext/test/string/#/contains/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/contains/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/contains/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/string/#/contains/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/contains/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/contains/shim.js b/tools/eslint/node_modules/es5-ext/test/string/#/contains/shim.js deleted file mode 100644 index a0ea4db208..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/contains/shim.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call('raz', ''), true, "Empty"); - a(t.call('', ''), true, "Both Empty"); - a(t.call('raz', 'raz'), true, "Same"); - a(t.call('razdwa', 'raz'), true, "Starts with"); - a(t.call('razdwa', 'dwa'), true, "Ends with"); - a(t.call('razdwa', 'zdw'), true, "In middle"); - a(t.call('', 'raz'), false, "Something in empty"); - a(t.call('az', 'raz'), false, "Longer"); - a(t.call('azasdfasdf', 'azff'), false, "Not found"); - a(t.call('razdwa', 'raz', 1), false, "Position"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/implement.js b/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/implement.js deleted file mode 100644 index 93bd2ddcd6..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../string/#/ends-with/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/index.js b/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/shim.js b/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/shim.js deleted file mode 100644 index e4b93c407b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/ends-with/shim.js +++ /dev/null @@ -1,16 +0,0 @@ -// In some parts copied from: -// http://closure-library.googlecode.com/svn/trunk/closure/goog/ -// string/string_test.html - -'use strict'; - -module.exports = function (t, a) { - a(t.call('abc', ''), true, "Empty needle"); - a(t.call('abcd', 'cd'), true, "Ends with needle"); - a(t.call('abcd', 'abcd'), true, "Needle equals haystack"); - a(t.call('abcd', 'ab'), false, "Doesn't end with needle"); - a(t.call('abc', 'defg'), false, "Length trick"); - a(t.call('razdwa', 'zd', 3), false, "Position: false"); - a(t.call('razdwa', 'zd', 4), true, "Position: true"); - a(t.call('razdwa', 'zd', 5), false, "Position: false #2"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/hyphen-to-camel.js b/tools/eslint/node_modules/es5-ext/test/string/#/hyphen-to-camel.js deleted file mode 100644 index bd7ded4bef..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/hyphen-to-camel.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call('raz-dwa-t-rzy-4y-rtr4-tiu-45-pa'), 'razDwaTRzy4yRtr4Tiu45Pa'); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/indent.js b/tools/eslint/node_modules/es5-ext/test/string/#/indent.js deleted file mode 100644 index eb92b36f54..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/indent.js +++ /dev/null @@ -1,9 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call('ra\nzz', ''), 'ra\nzz', "Empty"); - a(t.call('ra\nzz', '\t', 3), '\t\t\tra\n\t\t\tzz', "String repeat"); - a(t.call('ra\nzz\nsss\nfff\n', '\t'), '\tra\n\tzz\n\tsss\n\tfff\n', - "Multi-line"); - a(t.call('ra\n\nzz\n', '\t'), '\tra\n\n\tzz\n', "Don't touch empty lines"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/last.js b/tools/eslint/node_modules/es5-ext/test/string/#/last.js deleted file mode 100644 index ad36a213c6..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/last.js +++ /dev/null @@ -1,6 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call(''), null, "Null"); - a(t.call('abcdef'), 'f', "String"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/_data.js b/tools/eslint/node_modules/es5-ext/test/string/#/normalize/_data.js deleted file mode 100644 index c741addb00..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/_data.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t[0], 'object'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/implement.js b/tools/eslint/node_modules/es5-ext/test/string/#/normalize/implement.js deleted file mode 100644 index 4886c9b834..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../string/#/normalize/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/index.js b/tools/eslint/node_modules/es5-ext/test/string/#/normalize/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/string/#/normalize/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/shim.js b/tools/eslint/node_modules/es5-ext/test/string/#/normalize/shim.js deleted file mode 100644 index 28e27f5952..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/normalize/shim.js +++ /dev/null @@ -1,13 +0,0 @@ -// Taken from: https://github.com/walling/unorm/blob/master/test/es6-shim.js - -'use strict'; - -var str = 'äiti'; - -module.exports = function (t, a) { - a(t.call(str), "\u00e4iti"); - a(t.call(str, "NFC"), "\u00e4iti"); - a(t.call(str, "NFD"), "a\u0308iti"); - a(t.call(str, "NFKC"), "\u00e4iti"); - a(t.call(str, "NFKD"), "a\u0308iti"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/pad.js b/tools/eslint/node_modules/es5-ext/test/string/#/pad.js deleted file mode 100644 index 28c3fcaa10..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/pad.js +++ /dev/null @@ -1,24 +0,0 @@ -'use strict'; - -var partial = require('../../../function/#/partial'); - -module.exports = { - Left: function (t, a) { - t = partial.call(t, 'x', 5); - - a(t.call('yy'), 'xxxyy'); - a(t.call(''), 'xxxxx', "Empty string"); - - a(t.call('yyyyy'), 'yyyyy', 'Equal length'); - a(t.call('yyyyyyy'), 'yyyyyyy', 'Longer'); - }, - Right: function (t, a) { - t = partial.call(t, 'x', -5); - - a(t.call('yy'), 'yyxxx'); - a(t.call(''), 'xxxxx', "Empty string"); - - a(t.call('yyyyy'), 'yyyyy', 'Equal length'); - a(t.call('yyyyyyy'), 'yyyyyyy', 'Longer'); - } -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/plain-replace-all.js b/tools/eslint/node_modules/es5-ext/test/string/#/plain-replace-all.js deleted file mode 100644 index a425c87a40..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/plain-replace-all.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call('razdwatrzy', 'dwa', 'olera'), 'razoleratrzy', "Basic"); - a(t.call('razdwatrzy', 'dwa', 'ole$&a'), 'razole$&atrzy', "Inserts"); - a(t.call('razdwa', 'ola', 'sdfs'), 'razdwa', "No replace"); - - a(t.call('$raz$$dwa$trzy$', '$', '&&'), '&&raz&&&&dwa&&trzy&&', "Multi"); - a(t.call('$raz$$dwa$$$$trzy$', '$$', '&'), '$raz&dwa&&trzy$', - "Multi many chars"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/plain-replace.js b/tools/eslint/node_modules/es5-ext/test/string/#/plain-replace.js deleted file mode 100644 index 54522ed749..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/plain-replace.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call('razdwatrzy', 'dwa', 'olera'), 'razoleratrzy', "Basic"); - a(t.call('razdwatrzy', 'dwa', 'ole$&a'), 'razole$&atrzy', "Inserts"); - a(t.call('razdwa', 'ola', 'sdfs'), 'razdwa', "No replace"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/repeat/implement.js b/tools/eslint/node_modules/es5-ext/test/string/#/repeat/implement.js deleted file mode 100644 index 7ff65a8110..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/repeat/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../string/#/repeat/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/repeat/index.js b/tools/eslint/node_modules/es5-ext/test/string/#/repeat/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/repeat/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/repeat/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/string/#/repeat/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/repeat/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/repeat/shim.js b/tools/eslint/node_modules/es5-ext/test/string/#/repeat/shim.js deleted file mode 100644 index 7e0d077ec4..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/repeat/shim.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call('a', 0), '', "Empty"); - a(t.call('a', 1), 'a', "1"); - a(t.call('\t', 5), '\t\t\t\t\t', "Whitespace"); - a(t.call('raz', 3), 'razrazraz', "Many chars"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/implement.js b/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/implement.js deleted file mode 100644 index fc8490fc91..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../../string/#/starts-with/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/index.js b/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/shim.js b/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/shim.js deleted file mode 100644 index e0e123b324..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/starts-with/shim.js +++ /dev/null @@ -1,14 +0,0 @@ -// Inspired and in some parts copied from: -// http://closure-library.googlecode.com/svn/trunk/closure/goog -// /string/string_test.html - -'use strict'; - -module.exports = function (t, a) { - a(t.call('abc', ''), true, "Empty needle"); - a(t.call('abcd', 'ab'), true, "Starts with needle"); - a(t.call('abcd', 'abcd'), true, "Needle equals haystack"); - a(t.call('abcd', 'bcde', 1), false, "Needle larger than haystack"); - a(!t.call('abcd', 'cd'), true, "Doesn't start with needle"); - a(t.call('abcd', 'bc', 1), true, "Position"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/#/uncapitalize.js b/tools/eslint/node_modules/es5-ext/test/string/#/uncapitalize.js deleted file mode 100644 index 50f35f1fe4..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/#/uncapitalize.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t.call('raz'), 'raz', "Word"); - a(t.call('BLA'), 'bLA', "Uppercase"); - a(t.call(''), '', "Empty"); - a(t.call('a'), 'a', "One letter"); - a(t.call('this is a test'), 'this is a test', "Sentence"); - a(t.call('This is a test'), 'this is a test', "Capitalized sentence"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/format-method.js b/tools/eslint/node_modules/es5-ext/test/string/format-method.js deleted file mode 100644 index bb5561ee45..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/format-method.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - t = t({ a: 'A', aa: 'B', ab: 'C', b: 'D', - c: function () { return ++this.a; } }); - a(t.call({ a: 0 }, ' %a%aab%abb%b\\%aa%ab%c%c '), ' ABbCbD%aaC12 '); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/from-code-point/implement.js b/tools/eslint/node_modules/es5-ext/test/string/from-code-point/implement.js deleted file mode 100644 index 0aceb97efd..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/from-code-point/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../string/from-code-point/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/from-code-point/index.js b/tools/eslint/node_modules/es5-ext/test/string/from-code-point/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/from-code-point/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/string/from-code-point/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/string/from-code-point/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/from-code-point/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/from-code-point/shim.js b/tools/eslint/node_modules/es5-ext/test/string/from-code-point/shim.js deleted file mode 100644 index 88cda3d636..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/from-code-point/shim.js +++ /dev/null @@ -1,47 +0,0 @@ -// Taken from: https://github.com/mathiasbynens/String.fromCodePoint/blob/master -// /tests/tests.js - -'use strict'; - -var pow = Math.pow; - -module.exports = function (t, a) { - var counter, result; - - a(t.length, 1, "Length"); - a(String.propertyIsEnumerable('fromCodePoint'), false, "Not enumerable"); - - a(t(''), '\0', "Empty string"); - a(t(), '', "No arguments"); - a(t(-0), '\0', "-0"); - a(t(0), '\0', "0"); - a(t(0x1D306), '\uD834\uDF06', "Unicode"); - a(t(0x1D306, 0x61, 0x1D307), '\uD834\uDF06a\uD834\uDF07', "Complex unicode"); - a(t(0x61, 0x62, 0x1D307), 'ab\uD834\uDF07', "Complex"); - a(t(false), '\0', "false"); - a(t(null), '\0', "null"); - - a.throws(function () { t('_'); }, RangeError, "_"); - a.throws(function () { t(Infinity); }, RangeError, "Infinity"); - a.throws(function () { t(-Infinity); }, RangeError, "-Infinity"); - a.throws(function () { t(-1); }, RangeError, "-1"); - a.throws(function () { t(0x10FFFF + 1); }, RangeError, "Range error #1"); - a.throws(function () { t(3.14); }, RangeError, "Range error #2"); - a.throws(function () { t(3e-2); }, RangeError, "Range error #3"); - a.throws(function () { t(-Infinity); }, RangeError, "Range error #4"); - a.throws(function () { t(+Infinity); }, RangeError, "Range error #5"); - a.throws(function () { t(NaN); }, RangeError, "Range error #6"); - a.throws(function () { t(undefined); }, RangeError, "Range error #7"); - a.throws(function () { t({}); }, RangeError, "Range error #8"); - a.throws(function () { t(/re/); }, RangeError, "Range error #9"); - - counter = pow(2, 15) * 3 / 2; - result = []; - while (--counter >= 0) result.push(0); // one code unit per symbol - t.apply(null, result); // must not throw - - counter = pow(2, 15) * 3 / 2; - result = []; - while (--counter >= 0) result.push(0xFFFF + 1); // two code units per symbol - t.apply(null, result); // must not throw -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/is-string.js b/tools/eslint/node_modules/es5-ext/test/string/is-string.js deleted file mode 100644 index 32f5958291..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/is-string.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { - a(t(null), false, "Null"); - a(t(''), true, "Empty string"); - a(t(12), false, "Number"); - a(t(false), false, "Boolean"); - a(t(new Date()), false, "Date"); - a(t(new String('raz')), true, "String object"); - a(t('asdfaf'), true, "String"); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/random-uniq.js b/tools/eslint/node_modules/es5-ext/test/string/random-uniq.js deleted file mode 100644 index 6791ac266e..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/random-uniq.js +++ /dev/null @@ -1,14 +0,0 @@ -'use strict'; - -var isValidFormat = RegExp.prototype.test.bind(/^[a-z0-9]+$/); - -module.exports = function (t, a) { - a(typeof t(), 'string'); - a.ok(t().length > 7); - a.not(t(), t()); - a.ok(isValidFormat(t())); - a.ok(isValidFormat(t())); - a.ok(isValidFormat(t())); - a.ok(isValidFormat(t())); - a.ok(isValidFormat(t())); -}; diff --git a/tools/eslint/node_modules/es5-ext/test/string/raw/implement.js b/tools/eslint/node_modules/es5-ext/test/string/raw/implement.js deleted file mode 100644 index 59416de3af..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/raw/implement.js +++ /dev/null @@ -1,5 +0,0 @@ -'use strict'; - -var isImplemented = require('../../../string/raw/is-implemented'); - -module.exports = function (a) { a(isImplemented(), true); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/raw/index.js b/tools/eslint/node_modules/es5-ext/test/string/raw/index.js deleted file mode 100644 index 2e0bfa3249..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/raw/index.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = require('./shim'); diff --git a/tools/eslint/node_modules/es5-ext/test/string/raw/is-implemented.js b/tools/eslint/node_modules/es5-ext/test/string/raw/is-implemented.js deleted file mode 100644 index 1a8832889b..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/raw/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -'use strict'; - -module.exports = function (t, a) { a(typeof t(), 'boolean'); }; diff --git a/tools/eslint/node_modules/es5-ext/test/string/raw/shim.js b/tools/eslint/node_modules/es5-ext/test/string/raw/shim.js deleted file mode 100644 index 025ed78045..0000000000 --- a/tools/eslint/node_modules/es5-ext/test/string/raw/shim.js +++ /dev/null @@ -1,15 +0,0 @@ -// Partially taken from: -// https://github.com/paulmillr/es6-shim/blob/master/test/string.js - -'use strict'; - -module.exports = function (t, a) { - var callSite = []; - - callSite.raw = ["The total is ", " ($", " with tax)"]; - a(t(callSite, '{total}', '{total * 1.01}'), - 'The total is {total} (${total * 1.01} with tax)'); - - callSite.raw = []; - a(t(callSite, '{total}', '{total * 1.01}'), ''); -}; |