Skip to content
Browse files

Don't leak 'text' into the global scope

  • Loading branch information...
1 parent d299cea commit ee9684c77047eeb05ed68f66d71860214db14b34 @pquerna pquerna committed Sep 1, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 Makefile
  2. +1 −1 lib/parser.js
View
2 Makefile
@@ -10,7 +10,7 @@ WHISKEY := $(shell bash -c 'PATH=$(PATH) type -p whiskey')
default: 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:
NODE_PATH=`pwd`/lib/ ${WHISKEY} --test-reporter tap --sequential --real-time --tests "${TESTS}"
View
2 lib/parser.js
@@ -39,7 +39,7 @@ TreeBuilder.prototype.close = function() {
TreeBuilder.prototype._flush = function() {
if (this._data) {
if (this._last !== null) {
- text = this._data.join("");
+ var text = this._data.join("");
if (this._tail) {
this._last.tail = text;
}

0 comments on commit ee9684c

Please sign in to comment.
Something went wrong with that request. Please try again.