1// Copyright 2015 the V8 project authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5// Flags: --allow-natives-syntax 6 7 8function fastaRandom(n, table) { 9 var line = new Array(5); 10 while (n > 0) { 11 if (n < line.length) line = new Array(n); 12 %OptimizeOsr(); 13 line[0] = n; 14 n--; 15 } 16} 17 18print("---BEGIN 1"); 19assertEquals(undefined, fastaRandom(6, null)); 20print("---BEGIN 2"); 21assertEquals(undefined, fastaRandom(6, null)); 22print("---END"); 23