8173851: JDK-8008448.js fails to parse test for JDK-8169481
Reviewed-by: jlaskey
This commit is contained in:
parent
9d1a6b4fa0
commit
92f7ce9b94
@ -35,9 +35,13 @@ var File = Java.type("java.io.File");
|
|||||||
var FilenameFilter = Java.type("java.io.FilenameFilter");
|
var FilenameFilter = Java.type("java.io.FilenameFilter");
|
||||||
var SourceHelper = Java.type("jdk.nashorn.test.models.SourceHelper")
|
var SourceHelper = Java.type("jdk.nashorn.test.models.SourceHelper")
|
||||||
|
|
||||||
|
var skippedTests = {
|
||||||
|
"JDK-8169481.js": true // deep AST can cause stack overflow
|
||||||
|
};
|
||||||
|
|
||||||
// Filter out non .js files
|
// Filter out non .js files
|
||||||
var files = new File(__DIR__).listFiles(new FilenameFilter() {
|
var files = new File(__DIR__).listFiles(new FilenameFilter() {
|
||||||
accept: function(f, n) { return n.endsWith(".js") }
|
accept: function(f, n) { return n.endsWith(".js") && !(n in skippedTests) }
|
||||||
});
|
});
|
||||||
|
|
||||||
// load parser API
|
// load parser API
|
||||||
|
Loading…
x
Reference in New Issue
Block a user