зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1149797 - Update browser jstests to treat ecma_6/extensions tests as 1.8, so that let is interpreted as a statement and not as an expression. r=bustage in a CLOSED TREE
This commit is contained in:
Родитель
1bb1fac06a
Коммит
f06b4feed4
|
@ -336,6 +336,10 @@ function jsTestDriverBrowserInit()
|
|||
{
|
||||
properties.version = '1.8';
|
||||
}
|
||||
else if (properties.test.match(/^ecma_6\/extensions/))
|
||||
{
|
||||
properties.version = '1.8';
|
||||
}
|
||||
}
|
||||
|
||||
// default to language=type;text/javascript. required for
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
// Enable "let" in shell builds. So silly.
|
||||
// NOTE: This only turns on 1.8.5 in shell builds. The browser requires the
|
||||
// futzing in js/src/tests/browser.js (which only turns on 1.8, the most
|
||||
// the browser supports).
|
||||
if (typeof version != 'undefined')
|
||||
version(185);
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
// NOTE: This only turns on 1.8.5 in shell builds. The browser requires the
|
||||
// futzing in js/src/tests/browser.js (which only turns on 1.8, the most
|
||||
// the browser supports).
|
||||
if (typeof version != 'undefined')
|
||||
version(185);
|
Загрузка…
Ссылка в новой задаче