From 424775bd69c97865f22d47e2ae5a11269009be9f Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Fri, 21 Oct 2011 09:04:30 -0700 Subject: [PATCH] fixed Property#toString() --- lib/nodes/property.js | 2 +- lib/visitor/compiler.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/nodes/property.js b/lib/nodes/property.js index 435faf6a3..73bd9acde 100644 --- a/lib/nodes/property.js +++ b/lib/nodes/property.js @@ -55,7 +55,7 @@ Property.prototype.clone = function(){ */ Property.prototype.toString = function(){ - return 'property(' + this.name + ', ' + this.expr + ')'; + return 'property(' + this.segments.join('') + ', ' + this.expr + ')'; }; /** diff --git a/lib/visitor/compiler.js b/lib/visitor/compiler.js index a26f26af0..c160e21a5 100644 --- a/lib/visitor/compiler.js +++ b/lib/visitor/compiler.js @@ -11,6 +11,7 @@ var Visitor = require('./') , nodes = require('../nodes') + , utils = require('../utils') , fs = require('fs'); /**