35 e.eval(<<EOF |
35 e.eval(<<EOF |
36 |
36 |
37 'use strict'; |
37 'use strict'; |
38 |
38 |
39 try { |
39 try { |
|
40 context = 444; |
|
41 print("FAILED!! context write should have thrown error"); |
|
42 } catch (e) { |
|
43 if (! (e instanceof TypeError)) { |
|
44 print("TypeError expected but got " + e); |
|
45 } |
|
46 } |
|
47 |
|
48 try { |
|
49 engine = "hello"; |
|
50 print("FAILED!! engine write should have thrown error"); |
|
51 } catch (e) { |
|
52 if (! (e instanceof TypeError)) { |
|
53 print("TypeError expected but got " + e); |
|
54 } |
|
55 } |
|
56 |
|
57 try { |
40 delete context; |
58 delete context; |
41 print("FAILED!! context delete should have thrown error"); |
59 print("FAILED!! context delete should have thrown error"); |
42 } catch (e) { |
60 } catch (e) { |
43 if (! (e instanceof SyntaxError)) { |
61 if (! (e instanceof SyntaxError)) { |
44 print("SyntaxError expected but got " + e); |
62 print("SyntaxError expected but got " + e); |