Commit 01d7470b authored by ricow@chromium.org's avatar ricow@chromium.org

Remove trailing spaces from js files.

This is a cosmetic change only.

Review URL: http://codereview.chromium.org/3797009

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5630 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 9aec3124
...@@ -949,7 +949,7 @@ function DebugResponseDetails(response) { ...@@ -949,7 +949,7 @@ function DebugResponseDetails(response) {
case 'suspend': case 'suspend':
details.text = 'stopped'; details.text = 'stopped';
break; break;
case 'setbreakpoint': case 'setbreakpoint':
result = 'set breakpoint #'; result = 'set breakpoint #';
result += body.breakpoint; result += body.breakpoint;
...@@ -961,7 +961,7 @@ function DebugResponseDetails(response) { ...@@ -961,7 +961,7 @@ function DebugResponseDetails(response) {
result += body.breakpoint; result += body.breakpoint;
details.text = result; details.text = result;
break; break;
case 'listbreakpoints': case 'listbreakpoints':
result = 'breakpoints: (' + body.breakpoints.length + ')'; result = 'breakpoints: (' + body.breakpoints.length + ')';
for (var i = 0; i < body.breakpoints.length; i++) { for (var i = 0; i < body.breakpoints.length; i++) {
......
...@@ -246,7 +246,7 @@ function LocalTime(time) { ...@@ -246,7 +246,7 @@ function LocalTime(time) {
var ltcache = { var ltcache = {
key: null, key: null,
val: null val: null
}; };
......
...@@ -2118,7 +2118,7 @@ DebugCommandProcessor.prototype.changeLiveRequest_ = function(request, response) ...@@ -2118,7 +2118,7 @@ DebugCommandProcessor.prototype.changeLiveRequest_ = function(request, response)
} }
var script_id = request.arguments.script_id; var script_id = request.arguments.script_id;
var preview_only = !!request.arguments.preview_only; var preview_only = !!request.arguments.preview_only;
var scripts = %DebugGetLoadedScripts(); var scripts = %DebugGetLoadedScripts();
var the_script = null; var the_script = null;
...@@ -2139,11 +2139,11 @@ DebugCommandProcessor.prototype.changeLiveRequest_ = function(request, response) ...@@ -2139,11 +2139,11 @@ DebugCommandProcessor.prototype.changeLiveRequest_ = function(request, response)
} }
var new_source = request.arguments.new_source; var new_source = request.arguments.new_source;
var result_description = Debug.LiveEdit.SetScriptSource(the_script, var result_description = Debug.LiveEdit.SetScriptSource(the_script,
new_source, preview_only, change_log); new_source, preview_only, change_log);
response.body = {change_log: change_log, result: result_description}; response.body = {change_log: change_log, result: result_description};
if (!preview_only && !this.running_ && result_description.stack_modified) { if (!preview_only && !this.running_ && result_description.stack_modified) {
response.body.stepin_recommended = true; response.body.stepin_recommended = true;
} }
......
This diff is collapsed.
...@@ -438,18 +438,18 @@ Script.prototype.lineCount = function() { ...@@ -438,18 +438,18 @@ Script.prototype.lineCount = function() {
/** /**
* Returns the name of script if available, contents of sourceURL comment * Returns the name of script if available, contents of sourceURL comment
* otherwise. See * otherwise. See
* http://fbug.googlecode.com/svn/branches/firebug1.1/docs/ReleaseNotes_1.1.txt * http://fbug.googlecode.com/svn/branches/firebug1.1/docs/ReleaseNotes_1.1.txt
* for details on using //@ sourceURL comment to identify scritps that don't * for details on using //@ sourceURL comment to identify scritps that don't
* have name. * have name.
* *
* @return {?string} script name if present, value for //@ sourceURL comment * @return {?string} script name if present, value for //@ sourceURL comment
* otherwise. * otherwise.
*/ */
Script.prototype.nameOrSourceURL = function() { Script.prototype.nameOrSourceURL = function() {
if (this.name) if (this.name)
return this.name; return this.name;
// 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 // because this file is being processed by js2c whose handling of spaces
// in regexps is broken. Also, ['"] are excluded from allowed URLs to // in regexps is broken. Also, ['"] are excluded from allowed URLs to
// avoid matches against sources that invoke evals with sourceURL. // avoid matches against sources that invoke evals with sourceURL.
......
...@@ -1611,7 +1611,7 @@ FrameMirror.prototype.invocationText = function() { ...@@ -1611,7 +1611,7 @@ FrameMirror.prototype.invocationText = function() {
result += ' returning '; result += ' returning ';
result += this.returnValue().toText(); result += this.returnValue().toText();
} }
return result; return result;
} }
......
...@@ -297,7 +297,7 @@ function RegExpTest(string) { ...@@ -297,7 +297,7 @@ function RegExpTest(string) {
%_ObjectEquals(cache.subject, string) && %_ObjectEquals(cache.subject, string) &&
%_ObjectEquals(0, lastIndex)) { %_ObjectEquals(0, lastIndex)) {
// The regexp.lastIndex value must be 0 for non-global RegExps, and for // The regexp.lastIndex value must be 0 for non-global RegExps, and for
// global RegExps we only cache negative results, which gives a resulting // global RegExps we only cache negative results, which gives a resulting
// lastIndex of zero as well. // lastIndex of zero as well.
if (global) this.lastIndex = 0; if (global) this.lastIndex = 0;
return cache.answer; return cache.answer;
......
...@@ -547,11 +547,11 @@ function DefineOwnProperty(obj, p, desc, should_throw) { ...@@ -547,11 +547,11 @@ function DefineOwnProperty(obj, p, desc, should_throw) {
if (!IS_UNDEFINED(current) && !current.isConfigurable()) { if (!IS_UNDEFINED(current) && !current.isConfigurable()) {
// Step 5 and 6 // Step 5 and 6
if ((!desc.hasEnumerable() || if ((!desc.hasEnumerable() ||
SameValue(desc.isEnumerable() && current.isEnumerable())) && SameValue(desc.isEnumerable() && current.isEnumerable())) &&
(!desc.hasConfigurable() || (!desc.hasConfigurable() ||
SameValue(desc.isConfigurable(), current.isConfigurable())) && SameValue(desc.isConfigurable(), current.isConfigurable())) &&
(!desc.hasWritable() || (!desc.hasWritable() ||
SameValue(desc.isWritable(), current.isWritable())) && SameValue(desc.isWritable(), current.isWritable())) &&
(!desc.hasValue() || (!desc.hasValue() ||
SameValue(desc.getValue(), current.getValue())) && SameValue(desc.getValue(), current.getValue())) &&
...@@ -755,7 +755,7 @@ function ObjectSeal(obj) { ...@@ -755,7 +755,7 @@ function ObjectSeal(obj) {
var desc = GetOwnProperty(obj, name); var desc = GetOwnProperty(obj, name);
if (desc.isConfigurable()) desc.setConfigurable(false); if (desc.isConfigurable()) desc.setConfigurable(false);
DefineOwnProperty(obj, name, desc, true); DefineOwnProperty(obj, name, desc, true);
} }
return ObjectPreventExtension(obj); return ObjectPreventExtension(obj);
} }
...@@ -772,7 +772,7 @@ function ObjectFreeze(obj) { ...@@ -772,7 +772,7 @@ function ObjectFreeze(obj) {
if (IsDataDescriptor(desc)) desc.setWritable(false); if (IsDataDescriptor(desc)) desc.setWritable(false);
if (desc.isConfigurable()) desc.setConfigurable(false); if (desc.isConfigurable()) desc.setConfigurable(false);
DefineOwnProperty(obj, name, desc, true); DefineOwnProperty(obj, name, desc, true);
} }
return ObjectPreventExtension(obj); return ObjectPreventExtension(obj);
} }
...@@ -1118,12 +1118,12 @@ function FunctionBind(this_arg) { // Length is 1. ...@@ -1118,12 +1118,12 @@ function FunctionBind(this_arg) { // Length is 1.
var bound_args = new $Array(argc_bound); var bound_args = new $Array(argc_bound);
for(var i = 0; i < argc_bound; i++) { for(var i = 0; i < argc_bound; i++) {
bound_args[i] = %_Arguments(i+1); bound_args[i] = %_Arguments(i+1);
} }
} }
var fn = this; var fn = this;
var result = function() { var result = function() {
// Combine the args we got from the bind call with the args // Combine the args we got from the bind call with the args
// given as argument to the invocation. // given as argument to the invocation.
var argc = %_ArgumentsLength(); var argc = %_ArgumentsLength();
var args = new $Array(argc + argc_bound); var args = new $Array(argc + argc_bound);
// Add bound arguments. // Add bound arguments.
...@@ -1132,7 +1132,7 @@ function FunctionBind(this_arg) { // Length is 1. ...@@ -1132,7 +1132,7 @@ function FunctionBind(this_arg) { // Length is 1.
} }
// Add arguments from call. // Add arguments from call.
for (var i = 0; i < argc; i++) { for (var i = 0; i < argc; i++) {
args[argc_bound + i] = %_Arguments(i); args[argc_bound + i] = %_Arguments(i);
} }
// If this is a construct call we use a special runtime method // If this is a construct call we use a special runtime method
// to generate the actual object using the bound function. // to generate the actual object using the bound function.
...@@ -1147,7 +1147,7 @@ function FunctionBind(this_arg) { // Length is 1. ...@@ -1147,7 +1147,7 @@ function FunctionBind(this_arg) { // Length is 1.
// try to redefine these as defined by the spec. The spec says // try to redefine these as defined by the spec. The spec says
// that bind should make these throw a TypeError if get or set // that bind should make these throw a TypeError if get or set
// is called and make them non-enumerable and non-configurable. // is called and make them non-enumerable and non-configurable.
// To be consistent with our normal functions we leave this as it is. // To be consistent with our normal functions we leave this as it is.
// Set the correct length. // Set the correct length.
var length = (this.length - argc_bound) > 0 ? this.length - argc_bound : 0; var length = (this.length - argc_bound) > 0 ? this.length - argc_bound : 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment