-
Notifications
You must be signed in to change notification settings - Fork 6
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 test for worker thread support #17
Conversation
95c9a4e
to
15ec637
Compare
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.
+1
test/v8-profiler.js
Outdated
profiler = require('../'); | ||
|
||
const NODE_V_010 = /^v0\.10\.\d+$/.test(process.version); | ||
const SOURCE_PATH = path.join(__dirname, '..'); | ||
|
||
var workerThreads; |
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.
Here could be let
, but I think we could open another pr to fix it because of many other var
in the raw file.
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.
Breaks Node 4 and 5 on Travis
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 might just need a "use strict" in this file.
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 might just need a "use strict" in this file.
enen
15ec637
to
9025e2b
Compare
Just a simple test, loading the module, capturing a small profile and sending it back over the wire. The test will be skipped if the worker_threads module can't be required.
9025e2b
to
cbecd20
Compare
Just a simple test, loading the module, capturing a small profile and
sending it back over the wire.
The test will be skipped if the worker_threads module can't be required.