Comparing version 0.0.40 to 0.0.41
@@ -862,5 +862,5 @@ (function(global) { | ||
})(typeof global !== 'undefined' ? global : this); | ||
System.register("traceur-runtime@0.0.40/src/runtime/polyfills/utils", [], function() { | ||
System.register("traceur-runtime@0.0.41/src/runtime/polyfills/utils", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.40/src/runtime/polyfills/utils"; | ||
var __moduleName = "traceur-runtime@0.0.41/src/runtime/polyfills/utils"; | ||
var toObject = $traceurRuntime.toObject; | ||
@@ -873,2 +873,18 @@ function toUint32(x) { | ||
} | ||
function isCallable(x) { | ||
return typeof x === 'function'; | ||
} | ||
function toInteger(x) { | ||
x = +x; | ||
if (isNaN(x)) | ||
return 0; | ||
if (!isFinite(x) || x === 0) | ||
return x; | ||
return x > 0 ? Math.floor(x) : Math.ceil(x); | ||
} | ||
var MAX_SAFE_LENGTH = Math.pow(2, 53) - 1; | ||
function toLength(x) { | ||
var len = toInteger(x); | ||
return len < 0 ? 0 : Math.min(len, MAX_SAFE_LENGTH); | ||
} | ||
return { | ||
@@ -883,12 +899,82 @@ get toObject() { | ||
return isObject; | ||
}, | ||
get isCallable() { | ||
return isCallable; | ||
}, | ||
get toInteger() { | ||
return toInteger; | ||
}, | ||
get toLength() { | ||
return toLength; | ||
} | ||
}; | ||
}); | ||
System.register("traceur-runtime@0.0.40/src/runtime/polyfills/ArrayIterator", [], function() { | ||
System.register("traceur-runtime@0.0.41/src/runtime/polyfills/Array", [], function() { | ||
"use strict"; | ||
var $__4; | ||
var __moduleName = "traceur-runtime@0.0.40/src/runtime/polyfills/ArrayIterator"; | ||
var $__5 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.40/src/runtime/polyfills/utils")), | ||
toObject = $__5.toObject, | ||
toUint32 = $__5.toUint32; | ||
var __moduleName = "traceur-runtime@0.0.41/src/runtime/polyfills/Array"; | ||
var $__3 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/utils")), | ||
toInteger = $__3.toInteger, | ||
toLength = $__3.toLength, | ||
toObject = $__3.toObject, | ||
isCallable = $__3.isCallable; | ||
function fill(value) { | ||
var start = arguments[1] !== (void 0) ? arguments[1] : 0; | ||
var end = arguments[2]; | ||
var object = toObject(this); | ||
var len = toLength(object.length); | ||
var fillStart = toInteger(start); | ||
var fillEnd = end !== undefined ? toInteger(end) : len; | ||
fillStart = fillStart < 0 ? Math.max(len + fillStart, 0) : Math.min(fillStart, len); | ||
fillEnd = fillEnd < 0 ? Math.max(len + fillEnd, 0) : Math.min(fillEnd, len); | ||
while (fillStart < fillEnd) { | ||
object[fillStart] = value; | ||
fillStart++; | ||
} | ||
return object; | ||
} | ||
function find(predicate) { | ||
var thisArg = arguments[1]; | ||
return findHelper(this, predicate, thisArg); | ||
} | ||
function findIndex(predicate) { | ||
var thisArg = arguments[1]; | ||
return findHelper(this, predicate, thisArg, true); | ||
} | ||
function findHelper(self, predicate) { | ||
var thisArg = arguments[2]; | ||
var returnIndex = arguments[3] !== (void 0) ? arguments[3] : false; | ||
var object = toObject(self); | ||
var len = toLength(object.length); | ||
if (!isCallable(predicate)) { | ||
throw TypeError(); | ||
} | ||
for (var i = 0; i < len; i++) { | ||
if (i in object) { | ||
var value = object[i]; | ||
if (predicate.call(thisArg, value, i, object)) { | ||
return returnIndex ? i : value; | ||
} | ||
} | ||
} | ||
return returnIndex ? -1 : undefined; | ||
} | ||
return { | ||
get fill() { | ||
return fill; | ||
}, | ||
get find() { | ||
return find; | ||
}, | ||
get findIndex() { | ||
return findIndex; | ||
} | ||
}; | ||
}); | ||
System.register("traceur-runtime@0.0.41/src/runtime/polyfills/ArrayIterator", [], function() { | ||
"use strict"; | ||
var $__5; | ||
var __moduleName = "traceur-runtime@0.0.41/src/runtime/polyfills/ArrayIterator"; | ||
var $__6 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/utils")), | ||
toObject = $__6.toObject, | ||
toUint32 = $__6.toUint32; | ||
var ARRAY_ITERATOR_KIND_KEYS = 1; | ||
@@ -898,3 +984,3 @@ var ARRAY_ITERATOR_KIND_VALUES = 2; | ||
var ArrayIterator = function ArrayIterator() {}; | ||
($traceurRuntime.createClass)(ArrayIterator, ($__4 = {}, Object.defineProperty($__4, "next", { | ||
($traceurRuntime.createClass)(ArrayIterator, ($__5 = {}, Object.defineProperty($__5, "next", { | ||
value: function() { | ||
@@ -923,3 +1009,3 @@ var iterator = toObject(this); | ||
writable: true | ||
}), Object.defineProperty($__4, Symbol.iterator, { | ||
}), Object.defineProperty($__5, Symbol.iterator, { | ||
value: function() { | ||
@@ -931,3 +1017,3 @@ return this; | ||
writable: true | ||
}), $__4), {}); | ||
}), $__5), {}); | ||
function createArrayIterator(array, kind) { | ||
@@ -968,6 +1054,6 @@ var object = toObject(array); | ||
}); | ||
System.register("traceur-runtime@0.0.40/src/runtime/polyfills/Map", [], function() { | ||
System.register("traceur-runtime@0.0.41/src/runtime/polyfills/Map", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.40/src/runtime/polyfills/Map"; | ||
var isObject = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.40/src/runtime/polyfills/utils")).isObject; | ||
var __moduleName = "traceur-runtime@0.0.41/src/runtime/polyfills/Map"; | ||
var isObject = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/utils")).isObject; | ||
var getOwnHashObject = $traceurRuntime.getOwnHashObject; | ||
@@ -1003,7 +1089,7 @@ var $hasOwnProperty = Object.prototype.hasOwnProperty; | ||
if (iter !== undefined) { | ||
for (var $__7 = iterable[Symbol.iterator](), | ||
$__8; !($__8 = $__7.next()).done; ) { | ||
var $__9 = $traceurRuntime.assertObject($__8.value), | ||
key = $__9[0], | ||
value = $__9[1]; | ||
for (var $__8 = iterable[Symbol.iterator](), | ||
$__9; !($__9 = $__8.next()).done; ) { | ||
var $__10 = $traceurRuntime.assertObject($__9.value), | ||
key = $__10[0], | ||
value = $__10[1]; | ||
{ | ||
@@ -1093,5 +1179,5 @@ this.set(key, value); | ||
}); | ||
System.register("traceur-runtime@0.0.40/node_modules/rsvp/lib/rsvp/asap", [], function() { | ||
System.register("traceur-runtime@0.0.41/node_modules/rsvp/lib/rsvp/asap", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.40/node_modules/rsvp/lib/rsvp/asap"; | ||
var __moduleName = "traceur-runtime@0.0.41/node_modules/rsvp/lib/rsvp/asap"; | ||
var $__default = function asap(callback, arg) { | ||
@@ -1146,6 +1232,6 @@ var length = queue.push([callback, arg]); | ||
}); | ||
System.register("traceur-runtime@0.0.40/src/runtime/polyfills/Promise", [], function() { | ||
System.register("traceur-runtime@0.0.41/src/runtime/polyfills/Promise", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.40/src/runtime/polyfills/Promise"; | ||
var async = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.40/node_modules/rsvp/lib/rsvp/asap")).default; | ||
var __moduleName = "traceur-runtime@0.0.41/src/runtime/polyfills/Promise"; | ||
var async = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/node_modules/rsvp/lib/rsvp/asap")).default; | ||
var promiseRaw = {}; | ||
@@ -1384,5 +1470,5 @@ function isPromise(x) { | ||
}); | ||
System.register("traceur-runtime@0.0.40/src/runtime/polyfills/String", [], function() { | ||
System.register("traceur-runtime@0.0.41/src/runtime/polyfills/String", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.40/src/runtime/polyfills/String"; | ||
var __moduleName = "traceur-runtime@0.0.41/src/runtime/polyfills/String"; | ||
var $toString = Object.prototype.toString; | ||
@@ -1556,19 +1642,23 @@ var $indexOf = String.prototype.indexOf; | ||
}); | ||
System.register("traceur-runtime@0.0.40/src/runtime/polyfills/polyfills", [], function() { | ||
System.register("traceur-runtime@0.0.41/src/runtime/polyfills/polyfills", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.40/src/runtime/polyfills/polyfills"; | ||
var Map = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.40/src/runtime/polyfills/Map")).Map; | ||
var Promise = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.40/src/runtime/polyfills/Promise")).Promise; | ||
var $__12 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.40/src/runtime/polyfills/String")), | ||
codePointAt = $__12.codePointAt, | ||
contains = $__12.contains, | ||
endsWith = $__12.endsWith, | ||
fromCodePoint = $__12.fromCodePoint, | ||
repeat = $__12.repeat, | ||
raw = $__12.raw, | ||
startsWith = $__12.startsWith; | ||
var $__12 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.40/src/runtime/polyfills/ArrayIterator")), | ||
entries = $__12.entries, | ||
keys = $__12.keys, | ||
values = $__12.values; | ||
var __moduleName = "traceur-runtime@0.0.41/src/runtime/polyfills/polyfills"; | ||
var Map = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/Map")).Map; | ||
var Promise = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/Promise")).Promise; | ||
var $__13 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/String")), | ||
codePointAt = $__13.codePointAt, | ||
contains = $__13.contains, | ||
endsWith = $__13.endsWith, | ||
fromCodePoint = $__13.fromCodePoint, | ||
repeat = $__13.repeat, | ||
raw = $__13.raw, | ||
startsWith = $__13.startsWith; | ||
var $__13 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/Array")), | ||
fill = $__13.fill, | ||
find = $__13.find, | ||
findIndex = $__13.findIndex; | ||
var $__13 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/ArrayIterator")), | ||
entries = $__13.entries, | ||
keys = $__13.keys, | ||
values = $__13.values; | ||
function maybeDefineMethod(object, name, value) { | ||
@@ -1604,3 +1694,3 @@ if (!(name in object)) { | ||
function polyfillArray(Array, Symbol) { | ||
maybeAddFunctions(Array.prototype, ['entries', entries, 'keys', keys, 'values', values]); | ||
maybeAddFunctions(Array.prototype, ['entries', entries, 'keys', keys, 'values', values, 'fill', fill, 'find', find, 'findIndex', findIndex]); | ||
if (Symbol && Symbol.iterator) { | ||
@@ -1629,8 +1719,8 @@ Object.defineProperty(Array.prototype, Symbol.iterator, { | ||
}); | ||
System.register("traceur-runtime@0.0.40/src/runtime/polyfill-import", [], function() { | ||
System.register("traceur-runtime@0.0.41/src/runtime/polyfill-import", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.40/src/runtime/polyfill-import"; | ||
var $__14 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.40/src/runtime/polyfills/polyfills")); | ||
var __moduleName = "traceur-runtime@0.0.41/src/runtime/polyfill-import"; | ||
var $__15 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.41/src/runtime/polyfills/polyfills")); | ||
return {}; | ||
}); | ||
System.get("traceur-runtime@0.0.40/src/runtime/polyfill-import" + ''); | ||
System.get("traceur-runtime@0.0.41/src/runtime/polyfill-import" + ''); |
{ | ||
"name": "traceur", | ||
"version": "0.0.40", | ||
"version": "0.0.41", | ||
"description": "ES6 to ES5 compiler", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
"semver": "2.2.1", | ||
"traceur": "0.0.39", | ||
"traceur": "0.0.40", | ||
"promises-aplus-tests": "~2.0.4" | ||
@@ -51,0 +51,0 @@ }, |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1009954
25519