test/script/basic/JDK-8012164.js

Print this page

        

*** 35,46 **** function error() { try { throw new Error('foo'); } catch (e) { ! for (i in e.stack) { ! printFrame(e.stack[i]); } } } func(); --- 35,47 ---- function error() { try { throw new Error('foo'); } catch (e) { ! var frames = e.getStackTrace(); ! for (i in frames) { ! printFrame(frames[i]); } } } func();