packages/jison-lex/examples/reference-output/semwhitespace_lex.jison-lexer.js
/**
             * and make sure the error info doesn't stay due to potential
             * ref cycle via userland code manipulations.
             * These would otherwise all be memory leak opportunities!
             *
             * Note that only array and object references are nuked as those
             * constitute the set of elements which can produce a cyclic ref.
             * The rest of the members is kept intact as they are harmless.
             *
             * @public
             * @this {LexErrorInfo}
             */
and make sure the error info doesn't stay due to potential
ref cycle via userland code manipulations.
These would otherwise all be memory leak opportunities!

Note that only array and object references are nuked as those
constitute the set of elements which can produce a cyclic ref.
The rest of the members is kept intact as they are harmless.


and make sure the error info doesn ' t stay due to potential ref cycle via userland code manipulations . These would otherwise all be memory leak opportunities! Note that only array and object references are nuked as those constitute the set of elements which can produce a cyclic ref . The rest of the members is kept intact as they are harmless .
function destructLexErrorInfo() {
                var rec = !!this.recoverable;
                for (var key in this) {
                    if (this.hasOwnProperty(key) && typeof key === 'object') {
                        this[key] = undefined;
                    }
                }
                this.recoverable = rec;
            }
function destructLexErrorInfo ( ) { var rec = ! ! this . recoverable ; for ( var key in this ) { if ( this . hasOwnProperty ( key ) && typeof key === 'object' ) { this [ key ] = undefined ; } } this . recoverable = rec ; }
and make sure the error info doesn't stay due to potential
 ref cycle via userland code manipulations.
and make sure the error info doesn ' t stay due to potential ref cycle via userland code manipulations .
// remove cyclic references added to error info: // info.yy = null; // info.lexer = null; // ...