spidermonkey:
js -e 'try{throw "Hello World!"}catch(t){switch(t){default:print(t)}}'
node:
node -e 'try{throw "Hello World!"}catch(t){switch(t){default:console.log(t)}}'
node -p 'try{throw "Hello World!"}catch(t){switch(t){default:t}}'
spidermonkey:
js -e 'try{throw "Hello World!"}catch(t){switch(t){default:print(t)}}'
node:
node -e 'try{throw "Hello World!"}catch(t){switch(t){default:console.log(t)}}'
node -p 'try{throw "Hello World!"}catch(t){switch(t){default:t}}'