Skip to content

Commit

Permalink
Don't leak 'text' into the global scope
Browse files Browse the repository at this point in the history
  • Loading branch information
pquerna committed Sep 1, 2011
1 parent d299cea commit ee9684c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -10,7 +10,7 @@ WHISKEY := $(shell bash -c 'PATH=$(PATH) type -p whiskey')
default: test default: test


test: test:
NODE_PATH=`pwd`/lib/ ${WHISKEY} --sequential --real-time --tests "${TESTS}" NODE_PATH=`pwd`/lib/ ${WHISKEY} --scope-leaks --sequential --real-time --tests "${TESTS}"


tap: tap:
NODE_PATH=`pwd`/lib/ ${WHISKEY} --test-reporter tap --sequential --real-time --tests "${TESTS}" NODE_PATH=`pwd`/lib/ ${WHISKEY} --test-reporter tap --sequential --real-time --tests "${TESTS}"
Expand Down
2 changes: 1 addition & 1 deletion lib/parser.js
Expand Up @@ -39,7 +39,7 @@ TreeBuilder.prototype.close = function() {
TreeBuilder.prototype._flush = function() { TreeBuilder.prototype._flush = function() {
if (this._data) { if (this._data) {
if (this._last !== null) { if (this._last !== null) {
text = this._data.join(""); var text = this._data.join("");
if (this._tail) { if (this._tail) {
this._last.tail = text; this._last.tail = text;
} }
Expand Down

0 comments on commit ee9684c

Please sign in to comment.