зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1179102 - The async version of loadSubscript doesn't get the right JS version. r=bholley
This commit is contained in:
Родитель
e6f4f29067
Коммит
b073ed1739
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче