itay/node-cover — pull request #33 by floriancargoet (2012-12-14 13:42:26+00:00)
Title: Do not instrument Identifier when preceded by typeof

When an identifier isn't declared, it's valid to use it in one specific expression:

typeof foo; // 'undefined'

Since it's instrumented by `node-cover`, it fails.

cover run test.js
ReferenceError: foo is not defined

This pull request remove the instrumentation of identifiers when their parent node is a `typeof` operator.