-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable application model test for karma
- Loading branch information
Raymond Feng
committed
Jul 28, 2015
1 parent
0f9dd93
commit 34eb0e1
Showing
1 changed file
with
4 additions
and
1 deletion.
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
34eb0e1
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.
FWIW, the problem is not in
crypto.randomBytes
, but in the way howBuffer
andUInt8Array
are implemented in phantomjs and/or es5shim. It turns out thatBuffer
is not an instance ofUInt8Array
when running in PhantomJS, and becausecrypto.getRandomValues
requires a typed array as the first argument, the code fails with a DOM type error.34eb0e1
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.
Yes, you are right. That's what's behind the scene.