зеркало из https://github.com/mozilla/pluotsorbet.git
Add stack map stubs.
This commit is contained in:
Родитель
cce2700224
Коммит
79e3d9ad8e
|
@ -13,4 +13,5 @@ var ATTRIBUTE_TYPES = {
|
||||||
LineNumberTable: "LineNumberTable",
|
LineNumberTable: "LineNumberTable",
|
||||||
LocalVariableTable: "LocalVariableTable",
|
LocalVariableTable: "LocalVariableTable",
|
||||||
Deprecated: "Deprecated",
|
Deprecated: "Deprecated",
|
||||||
|
StackMap: "StackMap"
|
||||||
};
|
};
|
||||||
|
|
|
@ -101,6 +101,10 @@ var getClassImage = function(classBytes) {
|
||||||
attribute.type = ATTRIBUTE_TYPES.Deprecated;
|
attribute.type = ATTRIBUTE_TYPES.Deprecated;
|
||||||
return attribute;
|
return attribute;
|
||||||
|
|
||||||
|
case ATTRIBUTE_TYPES.StackMap:
|
||||||
|
attribute.type = ATTRIBUTE_TYPES.StackMap;
|
||||||
|
return attribute;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
throw new Error("This attribute type is not supported yet. [" + JSON.stringify(item) + "]");
|
throw new Error("This attribute type is not supported yet. [" + JSON.stringify(item) + "]");
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче