Skip to content

Commit

Permalink
Uses correct error field
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles Engelke committed Jul 6, 2016
1 parent 9560530 commit 9c31b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WebCryptoAPI/digest/digest.js
Expand Up @@ -108,7 +108,7 @@ function run_test() {
.then(function(result) {
assert_unreached("digest() should not have worked for " + alg + ":" + size);
}, function(err) {
assert_equals(err.message, "OperationError", "Bad algorithm name should cause OperationError")
assert_equals(err.name, "NotSupportedError", "Bad algorithm name should cause NotSupportedError")
});

return promise;
Expand Down

0 comments on commit 9c31b68

Please sign in to comment.