Commit 1c1a265d authored by Dmitry.Shahtanov's avatar Dmitry.Shahtanov Committed by Alexander.Trofimov

дополнительно для бага Bug 26028 - Некорректная ошибка выводится когда...

дополнительно для бага Bug 26028 - Некорректная ошибка выводится когда аргументы/ссылки содержат ошибки/их значения 

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57877 954022d7-b5bf-4e40-9824-e11837661b57
parent 6554e268
...@@ -1268,7 +1268,7 @@ cERF.prototype.Calculate = function ( arg ) { ...@@ -1268,7 +1268,7 @@ cERF.prototype.Calculate = function ( arg ) {
a = a.tocNumber(); a = a.tocNumber();
if ( a instanceof cError ) { if ( a instanceof cError ) {
return this.value = new cError( cErrorType.wrong_value_type ); return this.value = a;
} }
a = a.getValue(); a = a.getValue();
...@@ -1276,7 +1276,7 @@ cERF.prototype.Calculate = function ( arg ) { ...@@ -1276,7 +1276,7 @@ cERF.prototype.Calculate = function ( arg ) {
if ( !( b instanceof cUndefined ) ) { if ( !( b instanceof cUndefined ) ) {
b = b.tocNumber(); b = b.tocNumber();
if ( b instanceof cError ) { if ( b instanceof cError ) {
return this.value = new cError( cErrorType.wrong_value_type ); return this.value = b
} }
b = b.getValue(); b = b.getValue();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment