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:
Jeff Walden 2015-04-02 15:46:33 -04:00
Родитель 1bb1fac06a
Коммит f06b4feed4
3 изменённых файлов: 12 добавлений и 1 удалений

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

@ -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);