зеркало из https://github.com/mozilla/pluotsorbet.git
Default to release mode.
This commit is contained in:
Родитель
bb49c86930
Коммит
eb8529bdea
|
@ -60,13 +60,15 @@ var getClassImage = function(classBytes) {
|
|||
|
||||
case ATTRIBUTE_TYPES.LineNumberTable:
|
||||
attribute.type = ATTRIBUTE_TYPES.LineNumberTable;
|
||||
var line_number_table_length = reader.read16();
|
||||
attribute.line_number_table = [];
|
||||
for (var i=0; i<line_number_table_length; i++) {
|
||||
attribute.line_number_table.push({
|
||||
start_pc: reader.read16(),
|
||||
line_number: reader.read16()
|
||||
});
|
||||
if (!release) {
|
||||
var line_number_table_length = reader.read16();
|
||||
attribute.line_number_table = [];
|
||||
for (var i = 0; i < line_number_table_length; i++) {
|
||||
attribute.line_number_table.push({
|
||||
start_pc: reader.read16(),
|
||||
line_number: reader.read16()
|
||||
});
|
||||
}
|
||||
}
|
||||
return attribute;
|
||||
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
var release = false;
|
||||
|
||||
function countTimeline(message: string, object?: Object) {
|
||||
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ declare var printErr;
|
|||
// declare var document;
|
||||
// declare var getComputedStyle;
|
||||
|
||||
/** @const */ var release: boolean = false;
|
||||
/** @const */ var release: boolean = true;
|
||||
/** @const */ var profile: boolean = false;
|
||||
|
||||
declare var dateNow: () => number;
|
||||
|
|
Загрузка…
Ссылка в новой задаче