diff -r 26a345c26e62 -r 39e17373d8df test/script/basic/NASHORN-296.js --- a/test/script/basic/NASHORN-296.js Tue Jun 25 17:31:19 2013 +0530 +++ b/test/script/basic/NASHORN-296.js Wed Jun 26 16:36:13 2013 +0530 @@ -33,7 +33,7 @@ load({ script: 'throw new Error()', name: name }); } catch(e) { // normalize windows path separator to URL style - var actual = e.stack[0].fileName; + var actual = e.getStackTrace()[0].fileName; if (actual !== name) { fail("expected file name to be " + name + ", actually got file name " + actual); @@ -48,6 +48,6 @@ try { throw new Error(); } catch (e) { - test(e.stack[0].fileName.substring(6)); + test(e.getStackTrace()[0].fileName.substring(6)); }