PhantomReporter: Testing for Node instance fails when Node is a SocketIO Object
In recent V8 builds Nodeis defined as a SocketIO object, instanceof on it in line 123 causes a TypeError exception.
This commit is contained in:
parent
965da97732
commit
c74744e9ce
@ -120,7 +120,7 @@ phantom.sendMessage = function() {
|
|||||||
if (!value) return value;
|
if (!value) return value;
|
||||||
|
|
||||||
// If we're a node
|
// If we're a node
|
||||||
if (typeof(Node) !== 'undefined' && value instanceof Node) return '[ Node ]';
|
if (typeof(Node) !== 'undefined' && !Node.hasOwnProperty("initialized") && value instanceof Node) return '[ Node ]';
|
||||||
|
|
||||||
// jasmine-given has expectations on Specs. We intercept to return a
|
// jasmine-given has expectations on Specs. We intercept to return a
|
||||||
// String to avoid stringifying the entire Jasmine environment, which
|
// String to avoid stringifying the entire Jasmine environment, which
|
||||||
|
Loading…
Reference in New Issue
Block a user