mirror of
https://github.com/hanzoai/node-dtrace-provider.git
synced 2026-09-23 23:48:45 +00:00
stub for unsupported platforms does not cover probes used by name
This commit is contained in:
committed by
Timothy J Fontaine
parent
447d692987
commit
e343e9d2df
+4
-4
@@ -1,10 +1,10 @@
|
||||
var DTraceProvider;
|
||||
|
||||
function DTraceProviderStub() {}
|
||||
DTraceProviderStub.prototype.addProbe = function() {
|
||||
return {
|
||||
'fire': function() { }
|
||||
};
|
||||
DTraceProviderStub.prototype.addProbe = function(name) {
|
||||
var p = { 'fire': function () {} };
|
||||
this[name] = p;
|
||||
return (p);
|
||||
};
|
||||
DTraceProviderStub.prototype.enable = function() {};
|
||||
DTraceProviderStub.prototype.fire = function() {};
|
||||
|
||||
Reference in New Issue
Block a user