[source-map] Fix incorrect RawSourceMap.sourcesContents field typing.

According to [the source map spec](https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit?pli=1) and [the source-map documentation](ea182cea38/README.md (new-sourcemapconsumerrawsourcemap)), this field is an array of strings, *not* a single string. Each item in the string contains the source code of the corresponding item in the `RawSourceMap.sources` array.
This commit is contained in:
John Vilk
2015-10-05 21:11:21 -04:00
parent 05557455c4
commit 4da1b9832c
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ function testSourceMapConsumer() {
version: 'foo',
sources: ['foo', 'bar'],
names: ['foo', 'bar'],
sourcesContent: 'foo',
sourcesContent: ['foo'],
mappings: 'foo'
});

View File

@@ -13,7 +13,7 @@ declare module SourceMap {
version: string;
sources: Array<string>;
names: Array<string>;
sourcesContent?: string;
sourcesContent?: string[];
mappings: string;
}