forked from hprose/hprose-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"author": "Ma Bingyao <[email protected]>", | ||
"name": "hprose", | ||
"version": "2.0.15", | ||
"version": "2.0.16", | ||
"description": "Hprose is a High Performance Remote Object Service Engine.", | ||
"keywords": [ | ||
"hprose", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
// Hprose for JavaScript v2.0.15 | ||
// Hprose for JavaScript v2.0.16 | ||
// Copyright (c) 2008-2016 http://hprose.com | ||
// Hprose is freely distributable under the MIT license. | ||
// For all details and documentation: | ||
|
@@ -1733,7 +1733,7 @@ | |
* * | ||
* hprose Future for JavaScript. * | ||
* * | ||
* LastModified: Sep 29, 2016 * | ||
* LastModified: Oct 21, 2016 * | ||
* Author: Ma Bingyao <[email protected]> * | ||
* * | ||
\**********************************************************/ | ||
|
@@ -1782,7 +1782,7 @@ | |
} | ||
|
||
function toPromise(obj) { | ||
return (isPromise(obj) ? obj : value(obj)); | ||
return (isFuture(obj) ? obj : value(obj)); | ||
} | ||
|
||
function delayed(duration, value) { | ||
|
@@ -2122,7 +2122,7 @@ | |
this.reject(new TypeError('Self resolution')); | ||
return; | ||
} | ||
if (isPromise(value)) { | ||
if (isFuture(value)) { | ||
value.fill(this); | ||
return; | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
* * | ||
* hprose Future for JavaScript. * | ||
* * | ||
* LastModified: Sep 29, 2016 * | ||
* LastModified: Oct 21, 2016 * | ||
* Author: Ma Bingyao <[email protected]> * | ||
* * | ||
\**********************************************************/ | ||
|
@@ -62,7 +62,7 @@ | |
} | ||
|
||
function toPromise(obj) { | ||
return (isPromise(obj) ? obj : value(obj)); | ||
return (isFuture(obj) ? obj : value(obj)); | ||
} | ||
|
||
function delayed(duration, value) { | ||
|
@@ -402,7 +402,7 @@ | |
this.reject(new TypeError('Self resolution')); | ||
return; | ||
} | ||
if (isPromise(value)) { | ||
if (isFuture(value)) { | ||
value.fill(this); | ||
return; | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.