Skip to content

Commit b476209

Browse files
author
Chris K
committed
Fixed BOM, line endings and ws.
1 parent d104f41 commit b476209

File tree

6 files changed

+908
-908
lines changed

6 files changed

+908
-908
lines changed

src/build-application/build_ecmascript_debugger_6_0.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,17 @@ window.app.builders.EcmascriptDebugger["6.0"] = function(service)
8686
/* Runtime State */
8787
new cls.JSSidePanelView('scripts-side-panel',
8888
ui_strings.M_VIEW_LABEL_RUNTIME_STATE,
89-
['watches', 'return-values', 'callstack', 'inspection'],
89+
['watches', 'return-values', 'callstack', 'inspection'],
9090
// default expanded flags for the view list
9191
[false, true, true]);
9292

93-
/* Return Values */
94-
cls.ReturnValuesView.prototype = ViewBase;
95-
new cls.ReturnValuesView('return-values',
96-
ui_strings.M_VIEW_LABEL_RETURN_VALUES,
97-
'scroll mono');
98-
cls.ReturnValuesView.create_ui_widgets();
99-
93+
/* Return Values */
94+
cls.ReturnValuesView.prototype = ViewBase;
95+
new cls.ReturnValuesView('return-values',
96+
ui_strings.M_VIEW_LABEL_RETURN_VALUES,
97+
'scroll mono');
98+
cls.ReturnValuesView.create_ui_widgets();
99+
100100
/* Callstack */
101101
cls.CallstackView.prototype = ViewBase;
102102
new cls.CallstackView('callstack',

src/ecma-debugger/ecmascriptdebugger.6.14.responses.getbacktrace.js

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// Autogenerated by hob
1+
// Autogenerated by hob
22
window.cls || (window.cls = {});
33
cls.EcmascriptDebugger || (cls.EcmascriptDebugger = {});
44
cls.EcmascriptDebugger["6.14"] || (cls.EcmascriptDebugger["6.14"] = {});
55

6-
/**
6+
/**
77
* Frames are in innermost-first order.
88
*/
99
cls.EcmascriptDebugger["6.14"].BacktraceFrameList = function(arr)
@@ -12,11 +12,11 @@ cls.EcmascriptDebugger["6.14"].BacktraceFrameList = function(arr)
1212
{
1313
return new cls.EcmascriptDebugger["6.14"].BacktraceFrame(item);
1414
});
15-
/**
15+
/**
1616
* The list of return values that were returned from the most recent
1717
* function calls. List is cleared upon calling a function.
1818
* Most recently returned value is first in the list.
19-
*
19+
*
2020
* @since 6.10
2121
*/
2222
this.returnValueList = (arr[1] || []).map(function(item)
@@ -31,29 +31,29 @@ cls.EcmascriptDebugger["6.14"].BacktraceFrame = function(arr)
3131
this.argumentObject = arr[1];
3232
this.variableObject = arr[2];
3333
this.thisObject = arr[3];
34-
/**
34+
/**
3535
* TODO: Spec says repeated, while the code only assumes one (required)
3636
*/
3737
this.objectValue = arr[4] ? new cls.EcmascriptDebugger["6.14"].ObjectValue(arr[4], this) : null;
3838
this.scriptID = arr[5];
3939
this.lineNumber = arr[6];
40-
/**
40+
/**
4141
* The variable objects in the scope chain of the function. The first
4242
* element in the list is the innermost scope (the scope of the function
4343
* itself). The list includes the global scope.
44-
*
44+
*
4545
* @since 6.1
4646
*/
4747
this.scopeList = arr[7] || [];
48-
/**
48+
/**
4949
* The full value of the 'arguments' object.
50-
*
50+
*
5151
* @since 6.2
5252
*/
5353
this.argumentValue = arr[8] ? new cls.EcmascriptDebugger["6.14"].ObjectValue(arr[8], this) : null;
54-
/**
54+
/**
5555
* The full value of the 'this' object.
56-
*
56+
*
5757
* @since 6.2
5858
*/
5959
this.thisValue = arr[9] ? new cls.EcmascriptDebugger["6.14"].ObjectValue(arr[9], this) : null;
@@ -63,149 +63,149 @@ cls.EcmascriptDebugger["6.14"].ObjectValue = function(arr)
6363
{
6464
this.objectID = arr[0];
6565
this.isCallable = arr[1];
66-
/**
66+
/**
6767
* type, function or object
6868
*/
6969
this.type = arr[2];
7070
this.prototypeID = arr[3];
71-
/**
71+
/**
7272
* The class of the object.
7373
*/
7474
this.className = arr[4];
75-
/**
75+
/**
7676
* If the object is a function, this is the name of
7777
* the variable associated with that function (if any).
7878
*/
7979
this.functionName = arr[5];
8080
};
8181

82-
/**
82+
/**
8383
* The object representing return value of a function. Includes context
8484
* information indicating where from and where to the value was returned (script
8585
* id, line number), returned value and function object itself that returned
8686
* the value.
87-
*
87+
*
8888
* @since 6.10
8989
*/
9090
cls.EcmascriptDebugger["6.14"].ReturnValue = function(arr)
9191
{
92-
/**
92+
/**
9393
* The value that was returned.
9494
*/
9595
this.value = arr[0] ? new cls.EcmascriptDebugger["6.14"].Value(arr[0], this) : null;
96-
/**
96+
/**
9797
* The function object from which the value was returned.
9898
*/
9999
this.functionFrom = arr[1] ? new cls.EcmascriptDebugger["6.14"].ObjectValue(arr[1], this) : null;
100-
/**
100+
/**
101101
* The position where the value was returned from.
102102
*/
103103
this.positionFrom = arr[2] ? new cls.EcmascriptDebugger["6.14"].Position(arr[2], this) : null;
104-
/**
104+
/**
105105
* The position where the value was returned to.
106106
*/
107107
this.positionTo = arr[3] ? new cls.EcmascriptDebugger["6.14"].Position(arr[3], this) : null;
108108
};
109109

110-
/**
110+
/**
111111
* Represents an ECMAScript value, a value is either one of the primitives
112112
* like string or boolean or an object.
113113
*/
114114
cls.EcmascriptDebugger["6.14"].Value = function(arr)
115115
{
116-
/**
116+
/**
117117
* The type of value.
118-
*
118+
*
119119
* @note Booleans are encoded as either TRUE or FALSE to shorten the number
120120
* fields in use.
121121
*/
122122
// cls.EcmascriptDebugger["6.14"].Value.Type
123123
this.type = arr[0];
124-
/**
124+
/**
125125
* The numeric value, set if type = NUMBER.
126126
*/
127127
this.number = arr[1];
128-
/**
128+
/**
129129
* The string, set if type = STRING.
130130
*/
131131
this.str = arr[2];
132-
/**
132+
/**
133133
* Object information, set if type = OBJECT.
134134
*/
135135
this.object = arr[3] ? new cls.EcmascriptDebugger["6.14"].ObjectValue(arr[3], this) : null;
136136
};
137137
cls.EcmascriptDebugger["6.14"].Value.Type =
138138
{
139-
/**
139+
/**
140140
* The undefined type, returned when no value was found or "undefined"
141141
* was referenced.
142142
*/
143143
0: "UNDEFINED",
144-
/**
144+
/**
145145
* A null value.
146146
*/
147147
1: "NULL",
148-
/**
148+
/**
149149
* Boolean value true.
150150
*/
151151
2: "TRUE",
152-
/**
152+
/**
153153
* Boolean value false.
154154
*/
155155
3: "FALSE",
156-
/**
156+
/**
157157
* NaN value which cannot be exported to JSON directly.
158158
* Should be treated like a number.
159-
*
159+
*
160160
* ECMAScript users should use this code to get the value natively::
161-
*
161+
*
162162
* parseFloat("NaN")
163163
*/
164164
4: "NAN",
165-
/**
165+
/**
166166
* Plus infinity value which cannot be export to JSON directly.
167167
* Should be treated like a number.
168-
*
168+
*
169169
* ECMAScript users should use this code to get the value natively::
170-
*
170+
*
171171
* parseFloat("Infinity")
172172
*/
173173
5: "PLUS_INFINITY",
174-
/**
174+
/**
175175
* Minus infinity value which cannot be export to JSON directly.
176176
* Should be treated like a number.
177-
*
177+
*
178178
* ECMAScript users should use this code to get the value natively::
179-
*
179+
*
180180
* parseFloat("-Infinity")
181181
*/
182182
6: "MINUS_INFINITY",
183-
/**
183+
/**
184184
* A number, use the field 'number' for the actual value.
185185
*/
186186
7: "NUMBER",
187-
/**
187+
/**
188188
* A string, use the field 'str' for the actual string data.
189189
*/
190190
8: "STRING",
191-
/**
191+
/**
192192
* An object, the field 'object' contains object details.
193193
*/
194194
9: "OBJECT",
195195
};
196196

197-
/**
197+
/**
198198
* Defines the position in a script. The position is identified by the ID of
199199
* the script and the line number in the script.
200200
*/
201201
cls.EcmascriptDebugger["6.14"].Position = function(arr)
202202
{
203-
/**
203+
/**
204204
* ID of the script which contains the position.
205205
* The ID will be set in the ScriptInfo message when a new script appears.
206206
*/
207207
this.scriptID = arr[0];
208-
/**
208+
/**
209209
* The line number in the script.
210210
*/
211211
this.lineNumber = arr[1];

src/ecma-debugger/objectinspection.6.0/baseview.js

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,63 @@
1-
<<<<<<< HEAD
2-
window.cls || (window.cls = {});
3-
cls.EcmascriptDebugger || (cls.EcmascriptDebugger = {});
4-
cls.EcmascriptDebugger["6.0"] || (cls.EcmascriptDebugger["6.0"] = {});
5-
6-
/**
7-
* @constructor
8-
* @extends ViewBase
9-
*/
10-
11-
cls.EcmascriptDebugger["6.0"].InspectionBaseView = function()
12-
{
13-
14-
this.createView = function(container)
15-
{
16-
var data_model = this._data || window.inspections && window.inspections[this._cur_data];
17-
if (data_model)
18-
{
19-
this._create_view_bound = this._create_view.bind(this, container, data_model);
20-
data_model.expand(this._create_view_bound);
21-
}
22-
else
23-
{
24-
this._create_view_bound = null;
25-
container.clearAndRender(this._tmpl_no_content());
26-
}
27-
};
28-
29-
this._on_setting_change = function(msg)
30-
{
31-
if (msg.id == 'inspection')
32-
switch (msg.key)
33-
{
34-
case 'show-default-nulls-and-empty-strings':
35-
this.update();
36-
break;
37-
}
38-
};
39-
40-
this._create_view = function(container, data_model)
41-
{
42-
var tmpl = window.templates.inspected_js_object(data_model, false,
43-
null, this._searchterm);
44-
container.clearAndRender(tmpl);
45-
};
46-
47-
this._onbeforesearch = function(searchterm)
48-
{
49-
if (this._create_view_bound && this.isvisible())
50-
{
51-
this._searchterm = searchterm;
52-
this._create_view_bound();
53-
}
54-
};
55-
56-
this._tmpl_no_content = function(){return []};
57-
58-
}
59-
60-
cls.EcmascriptDebugger["6.0"].InspectionBaseView.prototype = ViewBase;
1+
<<<<<<< HEAD
2+
window.cls || (window.cls = {});
3+
cls.EcmascriptDebugger || (cls.EcmascriptDebugger = {});
4+
cls.EcmascriptDebugger["6.0"] || (cls.EcmascriptDebugger["6.0"] = {});
5+
6+
/**
7+
* @constructor
8+
* @extends ViewBase
9+
*/
10+
11+
cls.EcmascriptDebugger["6.0"].InspectionBaseView = function()
12+
{
13+
14+
this.createView = function(container)
15+
{
16+
var data_model = this._data || window.inspections && window.inspections[this._cur_data];
17+
if (data_model)
18+
{
19+
this._create_view_bound = this._create_view.bind(this, container, data_model);
20+
data_model.expand(this._create_view_bound);
21+
}
22+
else
23+
{
24+
this._create_view_bound = null;
25+
container.clearAndRender(this._tmpl_no_content());
26+
}
27+
};
28+
29+
this._on_setting_change = function(msg)
30+
{
31+
if (msg.id == 'inspection')
32+
switch (msg.key)
33+
{
34+
case 'show-default-nulls-and-empty-strings':
35+
this.update();
36+
break;
37+
}
38+
};
39+
40+
this._create_view = function(container, data_model)
41+
{
42+
var tmpl = window.templates.inspected_js_object(data_model, false,
43+
null, this._searchterm);
44+
container.clearAndRender(tmpl);
45+
};
46+
47+
this._onbeforesearch = function(searchterm)
48+
{
49+
if (this._create_view_bound && this.isvisible())
50+
{
51+
this._searchterm = searchterm;
52+
this._create_view_bound();
53+
}
54+
};
55+
56+
this._tmpl_no_content = function(){return []};
57+
58+
}
59+
60+
cls.EcmascriptDebugger["6.0"].InspectionBaseView.prototype = ViewBase;
6161
=======
6262
window.cls || (window.cls = {});
6363
cls.EcmascriptDebugger || (cls.EcmascriptDebugger = {});

0 commit comments

Comments
 (0)