aboutsummaryrefslogtreecommitdiffstats
path: root/lang/js/src/Helpers.js
diff options
context:
space:
mode:
authorMaximilian Krambach <[email protected]>2018-05-04 10:56:59 +0000
committerMaximilian Krambach <[email protected]>2018-05-04 10:56:59 +0000
commitcf075846fb48c8d71937100d2c45069d37d54a38 (patch)
tree01b25208634229a48d2ec490324d11e7b6af534d /lang/js/src/Helpers.js
parentjs: Added browser testing for unit tests (diff)
downloadgpgme-cf075846fb48c8d71937100d2c45069d37d54a38.tar.gz
gpgme-cf075846fb48c8d71937100d2c45069d37d54a38.zip
js: fixing errors found by testing
-- * Key.js: Error code for wrong parameter in createKey should be "PARAM_WRONG" * Helpers.js: The property openpgpjs-like Objects were checked for in toKeyIdArray was not defined. * src/permittedOperations.js: updated more expectations and assumptions for the native API
Diffstat (limited to 'lang/js/src/Helpers.js')
-rw-r--r--lang/js/src/Helpers.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lang/js/src/Helpers.js b/lang/js/src/Helpers.js
index ea056fff..fd0e7200 100644
--- a/lang/js/src/Helpers.js
+++ b/lang/js/src/Helpers.js
@@ -48,7 +48,7 @@ export function toKeyIdArray(input){
if (input[i] instanceof GPGME_Key){
fpr = input[i].fingerprint;
} else if (input[i].hasOwnProperty('primaryKey') &&
- input[i].primaryKey.hasOwnProperty(getFingerprint)){
+ input[i].primaryKey.hasOwnProperty('getFingerprint')){
fpr = input[i].primaryKey.getFingerprint();
}
if (isFingerprint(fpr) === true){