Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 55f8150

Browse files
committed
chore: Release v0.6.16
1 parent d38ccde commit 55f8150

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

dist/jasmine-patch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
// in a testZone (ProxyZone). (See: angular/zone.js#91 & angular/angular#10503)
5656
if (!Zone)
5757
throw new Error("Missing: zone.js");
58-
if (!jasmine)
58+
if (typeof jasmine == 'undefined')
5959
throw new Error("Missing: jasmine.js");
6060
if (jasmine['__zone_patch__'])
6161
throw new Error("'jasmine' has already been patched with 'Zone'.");
@@ -83,7 +83,7 @@
8383
var testProxyZone = null;
8484
// Monkey patch all of the jasmine DSL so that each function runs in appropriate zone.
8585
var jasmineEnv = jasmine.getEnv();
86-
['desribe', 'xdescribe', 'fdescribe'].forEach(function (methodName) {
86+
['describe', 'xdescribe', 'fdescribe'].forEach(function (methodName) {
8787
var originalJasmineFn = jasmineEnv[methodName];
8888
jasmineEnv[methodName] = function (description, specDefinitions) {
8989
return originalJasmineFn.call(this, description, wrapDescribeInZone(specDefinitions));

dist/jasmine-patch.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/zone-node.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,8 +791,9 @@
791791
this[_prop] = null;
792792
}
793793
};
794+
// The getter would return undefined for unassigned properties but the default value of an unassigned property is null
794795
desc.get = function () {
795-
return this[_prop];
796+
return this[_prop] || null;
796797
};
797798
Object.defineProperty(obj, prop, desc);
798799
}

dist/zone.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888
function scheduleTask(task) {
8989
var data = task.data;
9090
data.target.addEventListener('readystatechange', function () {
91-
if (data.target.readyState === XMLHttpRequest.DONE) {
91+
if (data.target.readyState === data.target.DONE) {
9292
if (!data.aborted) {
9393
task.invoke();
9494
}
@@ -802,8 +802,9 @@
802802
this[_prop] = null;
803803
}
804804
};
805+
// The getter would return undefined for unassigned properties but the default value of an unassigned property is null
805806
desc.get = function () {
806-
return this[_prop];
807+
return this[_prop] || null;
807808
};
808809
Object.defineProperty(obj, prop, desc);
809810
}

dist/zone.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zone.js",
3-
"version": "0.6.15",
3+
"version": "0.6.16",
44
"description": "Zones for JavaScript",
55
"main": "dist/zone-node.js",
66
"browser": "dist/zone.js",

0 commit comments

Comments
 (0)