nashorn/test/script/basic/JDK-8075207.js
changeset 39662 e2b36a3779b9
parent 29536 805894cd3c6b
equal deleted inserted replaced
39604:8e45018bde9d 39662:e2b36a3779b9
    59 Assert.assertTrue(stats.get(0) instanceof VariableTree);
    59 Assert.assertTrue(stats.get(0) instanceof VariableTree);
    60 Assert.assertTrue(stats.get(1) instanceof FunctionDeclarationTree);
    60 Assert.assertTrue(stats.get(1) instanceof FunctionDeclarationTree);
    61 Assert.assertTrue(stats.get(2) instanceof VariableTree);
    61 Assert.assertTrue(stats.get(2) instanceof VariableTree);
    62 
    62 
    63 var print_hello = stats.get(1);
    63 var print_hello = stats.get(1);
    64 Assert.assertEquals(print_hello.name, "print_hello");
    64 Assert.assertEquals(print_hello.name.name, "print_hello");
    65 var print_hello_stats = print_hello.body.statements;
    65 var print_hello_stats = print_hello.body.statements;
    66 Assert.assertTrue(print_hello_stats.get(0) instanceof VariableTree);
    66 Assert.assertTrue(print_hello_stats.get(0) instanceof VariableTree);
    67 Assert.assertTrue(print_hello_stats.get(1) instanceof ExpressionStatementTree);
    67 Assert.assertTrue(print_hello_stats.get(1) instanceof ExpressionStatementTree);
    68 Assert.assertTrue(print_hello_stats.get(2) instanceof FunctionDeclarationTree);
    68 Assert.assertTrue(print_hello_stats.get(2) instanceof FunctionDeclarationTree);
    69 Assert.assertTrue(print_hello_stats.get(3) instanceof VariableTree);
    69 Assert.assertTrue(print_hello_stats.get(3) instanceof VariableTree);