1.1 --- a/test/script/basic/NASHORN-296.js Tue Jun 25 17:31:19 2013 +0530 1.2 +++ b/test/script/basic/NASHORN-296.js Wed Jun 26 16:36:13 2013 +0530 1.3 @@ -33,7 +33,7 @@ 1.4 load({ script: 'throw new Error()', name: name }); 1.5 } catch(e) { 1.6 // normalize windows path separator to URL style 1.7 - var actual = e.stack[0].fileName; 1.8 + var actual = e.getStackTrace()[0].fileName; 1.9 if (actual !== name) { 1.10 fail("expected file name to be " + name + 1.11 ", actually got file name " + actual); 1.12 @@ -48,6 +48,6 @@ 1.13 try { 1.14 throw new Error(); 1.15 } catch (e) { 1.16 - test(e.stack[0].fileName.substring(6)); 1.17 + test(e.getStackTrace()[0].fileName.substring(6)); 1.18 } 1.19