Index: src/mirror-debugger.js |
diff --git a/src/mirror-debugger.js b/src/mirror-debugger.js |
index dfe297b1b7fb6f7106f0abe17dfd9e6a71b020bd..6f8ebb4000ae71c584ef7da9cc266f4b94611bca 100644 |
--- a/src/mirror-debugger.js |
+++ b/src/mirror-debugger.js |
@@ -67,7 +67,7 @@ function MakeMirror(value, opt_transient) { |
} |
} |
} |
- |
+ |
if (IS_UNDEFINED(value)) { |
mirror = new UndefinedMirror(); |
} else if (IS_NULL(value)) { |
@@ -110,7 +110,7 @@ function LookupMirror(handle) { |
return mirror_cache_[handle]; |
} |
- |
+ |
/** |
* Returns the mirror for the undefined value. |
* |
@@ -622,7 +622,7 @@ ObjectMirror.prototype.propertyNames = function(kind, limit) { |
var propertyNames; |
var elementNames; |
var total = 0; |
- |
+ |
// Find all the named properties. |
if (kind & PropertyKind.Named) { |
// Get the local property names. |
@@ -1223,7 +1223,7 @@ PropertyMirror.prototype.setter = function() { |
/** |
* Returns whether this property is natively implemented by the host or a set |
* through JavaScript code. |
- * @return {boolean} True if the property is |
+ * @return {boolean} True if the property is |
* UndefinedMirror if there is no setter for this property |
*/ |
PropertyMirror.prototype.isNative = function() { |
@@ -1390,7 +1390,7 @@ FrameMirror.prototype.index = function() { |
FrameMirror.prototype.func = function() { |
// Get the function for this frame from the VM. |
var f = this.details_.func(); |
- |
+ |
// Create a function mirror. NOTE: MakeMirror cannot be used here as the |
// value returned from the VM might be a string if the function for the |
// frame is unresolved. |
@@ -1825,17 +1825,17 @@ ScriptMirror.prototype.toText = function() { |
/** |
- * Returns a suggested script URL from comments in script code (if found), |
+ * Returns a suggested script URL from comments in script code (if found), |
* undefined otherwise. Used primarily by debuggers for identifying eval()'ed |
- * scripts. See |
+ * scripts. See |
* http://fbug.googlecode.com/svn/branches/firebug1.1/docs/ReleaseNotes_1.1.txt |
* for details. |
- * |
+ * |
* @return {?string} value for //@ sourceURL comment |
*/ |
ScriptMirror.prototype.sourceUrlFromComment_ = function() { |
if (!('sourceUrl_' in this) && this.source()) { |
- // TODO(608): the spaces in a regexp below had to be escaped as \040 |
+ // TODO(608): the spaces in a regexp below had to be escaped as \040 |
// because this file is being processed by js2c whose handling of spaces |
// in regexps is broken. |
// We're not using \s here to prevent \n from matching. |
@@ -1928,10 +1928,10 @@ JSONProtocolSerializer.prototype.serializeValue = function(mirror) { |
JSONProtocolSerializer.prototype.serializeReferencedObjects = function() { |
// Collect the protocol representation of the referenced objects in an array. |
var content = []; |
- |
+ |
// Get the number of referenced objects. |
var count = this.mirrors_.length; |
- |
+ |
for (var i = 0; i < count; i++) { |
content.push(this.serialize_(this.mirrors_[i], false, false)); |
} |
@@ -1966,7 +1966,7 @@ JSONProtocolSerializer.prototype.add_ = function(mirror) { |
return; |
} |
} |
- |
+ |
// Add the mirror to the list of mirrors to be serialized. |
this.mirrors_.push(mirror); |
} |
@@ -1978,7 +1978,7 @@ JSONProtocolSerializer.prototype.add_ = function(mirror) { |
* @param {Mirror} mirror Mirror to serialize. |
* @return {Object} Protocol reference object. |
*/ |
-JSONProtocolSerializer.prototype.serializeReferenceWithDisplayData_ = |
+JSONProtocolSerializer.prototype.serializeReferenceWithDisplayData_ = |
function(mirror) { |
var o = {}; |
o.ref = mirror.handle(); |
@@ -2025,7 +2025,7 @@ JSONProtocolSerializer.prototype.serialize_ = function(mirror, reference, |
return {'ref' : mirror.handle()}; |
} |
} |
- |
+ |
// Collect the JSON property/value pairs. |
var content = {}; |
@@ -2137,7 +2137,7 @@ JSONProtocolSerializer.prototype.serialize_ = function(mirror, reference, |
// Always add the text representation. |
content.text = mirror.toText(); |
- |
+ |
// Create and return the JSON string. |
return content; |
} |
@@ -2170,7 +2170,7 @@ JSONProtocolSerializer.prototype.serializeObject_ = function(mirror, content, |
if (mirror.hasIndexedInterceptor()) { |
content.indexedInterceptor = true; |
} |
- |
+ |
// Add function specific properties. |
if (mirror.isFunction()) { |
// Add function specific properties. |
@@ -2185,7 +2185,7 @@ JSONProtocolSerializer.prototype.serializeObject_ = function(mirror, content, |
if (mirror.script()) { |
content.script = this.serializeReference(mirror.script()); |
content.scriptId = mirror.script().id(); |
- |
+ |
serializeLocationFields(mirror.sourceLocation(), content); |
} |
} |
@@ -2224,13 +2224,13 @@ JSONProtocolSerializer.prototype.serializeObject_ = function(mirror, content, |
* "position":"<position>", |
* "line":"<line>", |
* "column":"<column>", |
- * |
+ * |
* @param {SourceLocation} location The location to serialize, may be undefined. |
*/ |
function serializeLocationFields (location, content) { |
if (!location) { |
return; |
- } |
+ } |
content.position = location.position; |
var line = location.line; |
if (!IS_UNDEFINED(line)) { |
@@ -2264,7 +2264,7 @@ function serializeLocationFields (location, content) { |
*/ |
JSONProtocolSerializer.prototype.serializeProperty_ = function(propertyMirror) { |
var result = {}; |
- |
+ |
result.name = propertyMirror.name(); |
var propertyValue = propertyMirror.value(); |
if (this.inlineRefs_() && propertyValue.isValue()) { |
@@ -2316,7 +2316,7 @@ JSONProtocolSerializer.prototype.serializeFrame_ = function(mirror, content) { |
if (!IS_UNDEFINED(source_line_text)) { |
content.sourceLineText = source_line_text; |
} |
- |
+ |
content.scopes = []; |
for (var i = 0; i < mirror.scopeCount(); i++) { |
var scope = mirror.scope(i); |
@@ -2358,5 +2358,5 @@ function NumberToJSON_(value) { |
return '-Infinity'; |
} |
} |
- return value; |
+ return value; |
} |