comparison: test/script/basic/JDK-8019819.js
test/script/basic/JDK-8019819.js
- changeset 962
- ac62e33a99b0
- parent 0
- b1a7da25b547
equal
deleted
inserted
replaced
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /** |
24 /** |
25 * JDK-8019819: scope symbol didn't get a slot in certain cases |
25 * JDK-8019819: scope symbol didn't get a slot in certain cases |
26 * |
26 * |
27 * @test |
27 * @test |
28 * @run |
28 * @run |
29 */ |
29 */ |
30 function f() { |
30 function f() { |
31 try { |
31 try { |
32 } catch(e if [].g(e)) { |
32 } catch(e if [].g(e)) { |
33 with({}) { |
33 with({}) { |
34 throw e; |
34 throw e; |
35 } |
35 } |
36 } |
36 } |
37 } |
37 } |
38 |
38 |
39 function g() { |
39 function g() { |
40 try { |
40 try { |
41 } catch(e) { |
41 } catch(e) { |
42 with({}) { |
42 with({}) { |
43 throw e; |
43 throw e; |
44 } |
44 } |
45 } |
45 } |
46 } |
46 } |