Comparing version 0.0.33 to 0.0.34
@@ -15,2 +15,3 @@ (function(global) { | ||
var $getPrototypeOf = $Object.getPrototypeOf; | ||
var $keys = $Object.keys; | ||
var $hasOwnProperty = $Object.prototype.hasOwnProperty; | ||
@@ -201,11 +202,14 @@ var $toString = $Object.prototype.toString; | ||
$defineProperty(Object, 'is', method(is)); | ||
function assign(target, source) { | ||
var props = $getOwnPropertyNames(source); | ||
var p, | ||
length = props.length; | ||
for (p = 0; p < length; p++) { | ||
var name = props[p]; | ||
if (name === hashProperty) | ||
continue; | ||
target[name] = source[name]; | ||
function assign(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
var props = $keys(source); | ||
var p, | ||
length = props.length; | ||
for (p = 0; p < length; p++) { | ||
var name = props[p]; | ||
if (name === hashProperty) | ||
continue; | ||
target[name] = source[name]; | ||
} | ||
} | ||
@@ -274,26 +278,14 @@ return target; | ||
} | ||
function getPropertyDescriptor(object, name) { | ||
while (object !== null) { | ||
var result = $getOwnPropertyDescriptor(object, name); | ||
function superDescriptor(homeObject, name) { | ||
var proto = $getPrototypeOf(homeObject); | ||
do { | ||
var result = $getOwnPropertyDescriptor(proto, name); | ||
if (result) | ||
return result; | ||
object = $getPrototypeOf(object); | ||
} | ||
proto = $getPrototypeOf(proto); | ||
} while (proto); | ||
return undefined; | ||
} | ||
function superDescriptor(homeObject, name) { | ||
var proto = $getPrototypeOf(homeObject); | ||
if (!proto) | ||
throw $TypeError('super is null'); | ||
return getPropertyDescriptor(proto, name); | ||
} | ||
function superCall(self, homeObject, name, args) { | ||
var descriptor = superDescriptor(homeObject, name); | ||
if (descriptor) { | ||
if ('value' in descriptor) | ||
return descriptor.value.apply(self, args); | ||
if (descriptor.get) | ||
return descriptor.get.call(self).apply(self, args); | ||
} | ||
throw $TypeError("super has no method '" + name + "'."); | ||
return superGet(self, homeObject, name).apply(self, args); | ||
} | ||
@@ -303,6 +295,5 @@ function superGet(self, homeObject, name) { | ||
if (descriptor) { | ||
if (descriptor.get) | ||
return descriptor.get.call(self); | ||
else if ('value' in descriptor) | ||
if (!descriptor.get) | ||
return descriptor.value; | ||
return descriptor.get.call(self); | ||
} | ||
@@ -838,5 +829,5 @@ return undefined; | ||
})(typeof global !== 'undefined' ? global : this); | ||
System.register("traceur-runtime@0.0.33/src/runtime/polyfills/utils", [], function() { | ||
System.register("traceur-runtime@0.0.34/src/runtime/polyfills/utils", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.33/src/runtime/polyfills/utils"; | ||
var __moduleName = "traceur-runtime@0.0.34/src/runtime/polyfills/utils"; | ||
var toObject = $traceurRuntime.toObject; | ||
@@ -861,7 +852,7 @@ function toUint32(x) { | ||
}); | ||
System.register("traceur-runtime@0.0.33/src/runtime/polyfills/ArrayIterator", [], function() { | ||
System.register("traceur-runtime@0.0.34/src/runtime/polyfills/ArrayIterator", [], function() { | ||
"use strict"; | ||
var $__4; | ||
var __moduleName = "traceur-runtime@0.0.33/src/runtime/polyfills/ArrayIterator"; | ||
var $__5 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.33/src/runtime/polyfills/utils")), | ||
var __moduleName = "traceur-runtime@0.0.34/src/runtime/polyfills/ArrayIterator"; | ||
var $__5 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.34/src/runtime/polyfills/utils")), | ||
toObject = $__5.toObject, | ||
@@ -940,6 +931,6 @@ toUint32 = $__5.toUint32; | ||
}); | ||
System.register("traceur-runtime@0.0.33/src/runtime/polyfills/Map", [], function() { | ||
System.register("traceur-runtime@0.0.34/src/runtime/polyfills/Map", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.33/src/runtime/polyfills/Map"; | ||
var isObject = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.33/src/runtime/polyfills/utils")).isObject; | ||
var __moduleName = "traceur-runtime@0.0.34/src/runtime/polyfills/Map"; | ||
var isObject = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.34/src/runtime/polyfills/utils")).isObject; | ||
var getOwnHashObject = $traceurRuntime.getOwnHashObject; | ||
@@ -1064,5 +1055,5 @@ var $hasOwnProperty = Object.prototype.hasOwnProperty; | ||
}); | ||
System.register("traceur-runtime@0.0.33/node_modules/rsvp/lib/rsvp/asap", [], function() { | ||
System.register("traceur-runtime@0.0.34/node_modules/rsvp/lib/rsvp/asap", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.33/node_modules/rsvp/lib/rsvp/asap"; | ||
var __moduleName = "traceur-runtime@0.0.34/node_modules/rsvp/lib/rsvp/asap"; | ||
var $__default = function asap(callback, arg) { | ||
@@ -1117,6 +1108,6 @@ var length = queue.push([callback, arg]); | ||
}); | ||
System.register("traceur-runtime@0.0.33/src/runtime/polyfills/Promise", [], function() { | ||
System.register("traceur-runtime@0.0.34/src/runtime/polyfills/Promise", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.33/src/runtime/polyfills/Promise"; | ||
var async = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.33/node_modules/rsvp/lib/rsvp/asap")).default; | ||
var __moduleName = "traceur-runtime@0.0.34/src/runtime/polyfills/Promise"; | ||
var async = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.34/node_modules/rsvp/lib/rsvp/asap")).default; | ||
var promiseRaw = {}; | ||
@@ -1355,5 +1346,5 @@ function isPromise(x) { | ||
}); | ||
System.register("traceur-runtime@0.0.33/src/runtime/polyfills/String", [], function() { | ||
System.register("traceur-runtime@0.0.34/src/runtime/polyfills/String", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.33/src/runtime/polyfills/String"; | ||
var __moduleName = "traceur-runtime@0.0.34/src/runtime/polyfills/String"; | ||
var $toString = Object.prototype.toString; | ||
@@ -1527,8 +1518,8 @@ var $indexOf = String.prototype.indexOf; | ||
}); | ||
System.register("traceur-runtime@0.0.33/src/runtime/polyfills/polyfills", [], function() { | ||
System.register("traceur-runtime@0.0.34/src/runtime/polyfills/polyfills", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.33/src/runtime/polyfills/polyfills"; | ||
var Map = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.33/src/runtime/polyfills/Map")).Map; | ||
var Promise = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.33/src/runtime/polyfills/Promise")).Promise; | ||
var $__12 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.33/src/runtime/polyfills/String")), | ||
var __moduleName = "traceur-runtime@0.0.34/src/runtime/polyfills/polyfills"; | ||
var Map = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.34/src/runtime/polyfills/Map")).Map; | ||
var Promise = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.34/src/runtime/polyfills/Promise")).Promise; | ||
var $__12 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.34/src/runtime/polyfills/String")), | ||
codePointAt = $__12.codePointAt, | ||
@@ -1541,3 +1532,3 @@ contains = $__12.contains, | ||
startsWith = $__12.startsWith; | ||
var $__12 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.33/src/runtime/polyfills/ArrayIterator")), | ||
var $__12 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.34/src/runtime/polyfills/ArrayIterator")), | ||
entries = $__12.entries, | ||
@@ -1600,8 +1591,8 @@ keys = $__12.keys, | ||
}); | ||
System.register("traceur-runtime@0.0.33/src/runtime/polyfill-import", [], function() { | ||
System.register("traceur-runtime@0.0.34/src/runtime/polyfill-import", [], function() { | ||
"use strict"; | ||
var __moduleName = "traceur-runtime@0.0.33/src/runtime/polyfill-import"; | ||
var $__14 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.33/src/runtime/polyfills/polyfills")); | ||
var __moduleName = "traceur-runtime@0.0.34/src/runtime/polyfill-import"; | ||
var $__14 = $traceurRuntime.assertObject(System.get("traceur-runtime@0.0.34/src/runtime/polyfills/polyfills")); | ||
return {}; | ||
}); | ||
System.get("traceur-runtime@0.0.33/src/runtime/polyfill-import" + ''); | ||
System.get("traceur-runtime@0.0.34/src/runtime/polyfill-import" + ''); |
{ | ||
"name": "traceur", | ||
"version": "0.0.33", | ||
"version": "0.0.34", | ||
"description": "Experimental ES6 to ES5 compiler", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
"semver": "2.2.1", | ||
"traceur": "0.0.32", | ||
"traceur": "0.0.33", | ||
"promises-aplus-tests": "~2.0.4" | ||
@@ -51,0 +51,0 @@ }, |
@@ -53,3 +53,3 @@ // Copyright 2013 Traceur Authors. | ||
if (!(m = opt.match(/^([\w\-]+)(:{0,2})$/))) { | ||
throw new Error('invalid option initialiser: ' + opt); | ||
throw new Error('invalid option initializer: ' + opt); | ||
} | ||
@@ -56,0 +56,0 @@ this.opts_[m[1]] = {name: m[1], arg: m[2], data: data}; |
@@ -143,2 +143,4 @@ // Copyright 2012 Traceur Authors. | ||
errback(err); | ||
}).catch(function(ex) { | ||
console.error('Internal error ' + (ex.stack || ex)); | ||
}); | ||
@@ -145,0 +147,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
988514
25010