Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #30011
| X-Received | by 10.182.115.229 with SMTP id jr5mr27001425obb.38.1410977583839; Wed, 17 Sep 2014 11:13:03 -0700 (PDT) |
|---|---|
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!h15no249103igd.0!news-out.google.com!ht4ni15318igb.0!nntp.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail |
| NNTP-Posting-Date | Wed, 17 Sep 2014 13:13:03 -0500 |
| Date | Wed, 17 Sep 2014 21:12:16 +0300 |
| From | Donkey Hottie <donkey@fredriksson.dy.fi> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 |
| MIME-Version | 1.0 |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Java ScriptEngine with a JavaScript returning what? |
| References | <vjhmeb-ecd.ln1@tempest.fredriksson.dy.fi> <lvad3j$qta$1@dont-email.me> <h4WdnaY_lYfcVYTJnZ2dnUVZ8jidnZ2d@bt.com> <lvci2n$rs9$1@dont-email.me> |
| In-Reply-To | <lvci2n$rs9$1@dont-email.me> |
| Message-ID | <1hvoeb-81h.ln1@tempest.fredriksson.dy.fi> (permalink) |
| Lines | 37 |
| X-Usenet-Provider | http://www.giganews.com |
| X-Trace | sv3-6CrCUbyShsI32cVn7hKPVZaOgjSOcogjnhJoVWfEELuyQ6LRKQMyKmh1aOjce1ROtkdcMfc4DXICzCk!W7dg46jPkWMpwB+4L/sarnjgkEDDd4p42N7xww5l5cnwYdmmhs9tHaagDzpl4EQbvAKozA== |
| X-Complaints-To | abuse@giganews.com |
| X-DMCA-Notifications | http://www.giganews.com/info/dmca.html |
| X-Abuse-and-DMCA-Info | Please be sure to forward a copy of ALL headers |
| X-Abuse-and-DMCA-Info | Otherwise we will be unable to process your complaint properly |
| X-Postfilter | 1.3.40 |
| X-Original-Bytes | 2389 |
| Content-Type | text/plain; charset=windows-1252 |
| Content-Transfer-Encoding | 7bit |
| Xref | csiph.com comp.lang.java.programmer:30011 |
Show key headers only | View raw
17.09.2014, 20:57, Eric Sosman kirjoitti: > On 9/17/2014 1:41 PM, Chris Uppal wrote: >> [...] >> Come to think of it, is that null the result of evaluating >> >> blah >> >> or is it the result of the last evaluation -- the empty expression >> following >> the terminating ; ? >> >> Not sure what JavaScript spec says here, let alone the ScriptEngine's >> interpretation of (presumably "global" variable) 'blah'. > > FWIW, Nashorn gives null for all of > > var blah; blah; > var blah; blah > var blah; > var blah > >> (Asking JavaScript questions on c.l.j.p ! I reel with shame...) > > "Java" is just a familiar shorthand for "JavaScript," right? > I debugged my code, and figured out that the wrongdoing was (of course in my own code). It returned unexpected when it encountered a null response. Bot in Nashorn and Rhino. Both return a null now for me, and I am happy. What is good that I learned about Oracle Nashorn in this process. Thank You all, you participants ;) -- You'll be called to a post requiring ability in handling groups of people.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Java ScriptEngine with a JavaScript returning what? Donkey Hottie <donkey@fredriksson.dy.fi> - 2014-09-16 23:02 +0300
Re: Java ScriptEngine with a JavaScript returning what? Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-09-16 18:20 -0400
(was: Re: Java ScriptEngine with a JavaScript returning what?) Robert Klemme <shortcutter@googlemail.com> - 2014-09-17 08:24 +0200
Re: Re: Java ScriptEngine with a JavaScript returning what?) "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-09-17 09:48 +0100
Re: Java ScriptEngine with a JavaScript returning what?) Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-09-17 08:32 -0400
Re: Java ScriptEngine with a JavaScript returning what?) Donkey Hottie <donkey@fredriksson.dy.fi> - 2014-09-17 20:08 +0300
Re: (was: Re: Java ScriptEngine with a JavaScript returning what?) Donkey Hottie <donkey@fredriksson.dy.fi> - 2014-09-17 19:56 +0300
Re: (was: Re: Java ScriptEngine with a JavaScript returning what?) Robert Klemme <shortcutter@googlemail.com> - 2014-09-17 19:35 +0200
Re: Java ScriptEngine with a JavaScript returning what? Donkey Hottie <donkey@fredriksson.dy.fi> - 2014-09-17 19:58 +0300
Re: Java ScriptEngine with a JavaScript returning what? "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2014-09-17 18:41 +0100
Re: Java ScriptEngine with a JavaScript returning what? Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-09-17 13:57 -0400
Re: Java ScriptEngine with a JavaScript returning what? Donkey Hottie <donkey@fredriksson.dy.fi> - 2014-09-17 21:12 +0300
Re: Java ScriptEngine with a JavaScript returning what? Donkey Hottie <donkey@fredriksson.dy.fi> - 2014-09-17 21:14 +0300
Re: Java ScriptEngine with a JavaScript returning what? Donkey Hottie <donkey@fredriksson.dy.fi> - 2014-09-17 21:17 +0300
csiph-web