-
-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add timingSafeEqual #156
base: master
Are you sure you want to change the base?
add timingSafeEqual #156
Conversation
Thanks for being quick on the trigger here @calvinmetcalf! |
these errrors have nothing to do with this, but just flakiness from saucelabs |
What is |
its for using the new buffer api the Buffer.alloc and Buffer.from stuff |
186b16e
to
bc593db
Compare
fixed and rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, check test feedback
test/timing-safe-equal.js
Outdated
|
||
t.throws(function () { | ||
timingSafeEqual(Buffer.from([1, 2, 3]), Buffer.from([1, 2])) | ||
}, 'should throw when given buffers with different lengths') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
t.throws(fn, expected, msg)
You are only doing
t.throws(fn, msg)
You should check what exception is throwing.
from what I can tell, we have a problem with the saucelabs setup |
No description provided.