1.1 --- a/test/script/basic/JDK-8015969.js Wed Aug 20 10:26:01 2014 +0200 1.2 +++ b/test/script/basic/JDK-8015969.js Wed Aug 20 18:59:11 2014 +0530 1.3 @@ -37,6 +37,24 @@ 1.4 'use strict'; 1.5 1.6 try { 1.7 + context = 444; 1.8 + print("FAILED!! context write should have thrown error"); 1.9 +} catch (e) { 1.10 + if (! (e instanceof TypeError)) { 1.11 + print("TypeError expected but got " + e); 1.12 + } 1.13 +} 1.14 + 1.15 +try { 1.16 + engine = "hello"; 1.17 + print("FAILED!! engine write should have thrown error"); 1.18 +} catch (e) { 1.19 + if (! (e instanceof TypeError)) { 1.20 + print("TypeError expected but got " + e); 1.21 + } 1.22 +} 1.23 + 1.24 +try { 1.25 delete context; 1.26 print("FAILED!! context delete should have thrown error"); 1.27 } catch (e) {