зеркало из https://github.com/mozilla/pjs.git
JavaScript Test - enclose statement in function definition, bug 351606
This commit is contained in:
Родитель
e91b545b50
Коммит
c2c7401401
|
@ -36,16 +36,15 @@
|
|||
* ***** END LICENSE BLOCK ***** */
|
||||
//-----------------------------------------------------------------------------
|
||||
var bug = 351496;
|
||||
var summary = 'decompilation of nested for..in and throw';
|
||||
var actual = '';
|
||||
var expect = '';
|
||||
var summary = 'Do not assert with nested for..in and throw';
|
||||
var actual = 'No Crash';
|
||||
var expect = 'No Crash';
|
||||
|
||||
enterFunc ('test');
|
||||
printBugNumber (bug);
|
||||
printStatus (summary);
|
||||
|
||||
|
||||
for (let d in [1,2,3,4]) try { for (let a in [5,6,7,8]) (( function() { throw 9; } )()); } catch(c) { }
|
||||
function () {for (let d in [1,2,3,4]) try { for (let a in [5,6,7,8]) (( function() { throw 9; } )()); } catch(c) { }}
|
||||
|
||||
reportCompare(expect, actual, summary);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче