Bug 1179102 - The async version of loadSubscript doesn't get the right JS version. r=bholley

This commit is contained in:
Fabrice Desré 2015-07-01 16:26:08 -07:00
Родитель e6f4f29067
Коммит b073ed1739
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -129,7 +129,8 @@ PrepareScript(nsIURI* uri,
MutableHandleFunction function)
{
JS::CompileOptions options(cx);
options.setFileAndLine(uriStr, 1);
options.setFileAndLine(uriStr, 1)
.setVersion(JSVERSION_LATEST);
if (!charset.IsVoid()) {
char16_t* scriptBuf = nullptr;
size_t scriptLength = 0;