Properly marshall diagnostic codes to the managed layer

This commit is contained in:
Cyrus Najmabadi committed 2014-10-07 13:31:21 -07:00
1 parent 0625cc4650
commit 0b7453b9d6
1 file changed
+2 -1
+2 -1
View File
@@ -502,7 +502,8 @@ module ts {
start: diagnostic.start,
length: diagnostic.length,
/// TODO: no need for the tolowerCase call
category: DiagnosticCategory[diagnostic.category].toLowerCase()
category: DiagnosticCategory[diagnostic.category].toLowerCase(),
code: diagnostic.code
};
}