nashorn/test/script/nosecurity/parserapi_nse.js.EXPECTED
author sundar
Wed, 16 Dec 2015 16:42:03 +0530
changeset 34735 0f41d334aa24
parent 29407 3fd4ede1581e
permissions -rw-r--r--
8145486: jjs should support documentation key shortcut in interactive mode Reviewed-by: mhaupt, hannesw
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
29407
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
     1
cond_catch.js:4:11 Expected ) but found if
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
     2
} catch (e if e instanceof ReferenceError) {}
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
     3
           ^
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
     4
func_closure.js:2:19 Expected { but found x
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
     5
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
     6
function square(x) x*x;
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
     7
                   ^
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
     8
for_each.js:2:4 Expected ( but found each
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
     9
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    10
for each (arg in arguments) print(arg);
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    11
    ^
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    12
anon_new.js:2:33 Expected ; but found {
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    13
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    14
var r = new java.lang.Runnable() {
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    15
                                 ^
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    16
anon_new.js:3:18 Expected ident but found (
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    17
     run: function() { print("hello") }
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    18
                  ^
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    19
anon_new.js:4:0 Expected eof but found }
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    20
};
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    21
^
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    22
anon_func_stat.js:2:9 Expected ident but found (
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    23
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    24
function () { print("hello") }
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    25
         ^
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    26
backquote.js:1:0 Expected an operand but found error
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    27
`ls`
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    28
^
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    29
backquote1.js:1:0 Expected an operand but found error
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    30
`ls`
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    31
^
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    32
heredoc.js:1:10 Expected an operand but found <<
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    33
var str = <<EOF
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    34
          ^
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    35
heredoc1.js:1:10 Expected an operand but found <<
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    36
var str = <<EOF
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    37
          ^
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    38
hashcomment.js:1:0 Expected an operand but found error
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    39
#comment
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    40
^
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    41
hashcomment1.js:1:0 Expected an operand but found error
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    42
#comment
3fd4ede1581e 8074671: Nashorn Parser API
sundar
parents:
diff changeset
    43
^