<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/node.git/test/simple/test-repl.js, branch move-debugger-tests</title>
<subtitle>github.com: joyent/node.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/'/>
<entry>
<title>repl: Catch syntax errors better</title>
<updated>2013-09-04T18:13:41+00:00</updated>
<author>
<name>isaacs</name>
<email>i@izs.me</email>
</author>
<published>2013-08-28T01:53:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=4631c503e35cd3bb75a10424dd47a73c12ec468e'/>
<id>4631c503e35cd3bb75a10424dd47a73c12ec468e</id>
<content type='text'>
Replace the growing list of 'isSyntaxError' whackamole conditions with a
smarter approach.  This creates a vm Script object *first*, which will
parse the code and raise a SyntaxError right away.

We still do need the test function, but only because strict mode syntax
errors are not recoverable, and should be raised right away.  Really, we
should probably *only* continue on "unexpected end of input" SyntaxErrors.

Also fixes a very difficult-to-test nit where the '...' indentation is
not properly cleared when you ^C out of a syntax error.

Closes #6093
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace the growing list of 'isSyntaxError' whackamole conditions with a
smarter approach.  This creates a vm Script object *first*, which will
parse the code and raise a SyntaxError right away.

We still do need the test function, but only because strict mode syntax
errors are not recoverable, and should be raised right away.  Really, we
should probably *only* continue on "unexpected end of input" SyntaxErrors.

Also fixes a very difficult-to-test nit where the '...' indentation is
not properly cleared when you ^C out of a syntax error.

Closes #6093
</pre>
</div>
</content>
</entry>
<entry>
<title>test: fix up indentation, replace tabs with spaces</title>
<updated>2013-07-10T07:48:57+00:00</updated>
<author>
<name>Ben Noordhuis</name>
<email>info@bnoordhuis.nl</email>
</author>
<published>2013-07-10T07:48:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=8a65df9baa934972f6da4543b89f92b132ed8007'/>
<id>8a65df9baa934972f6da4543b89f92b132ed8007</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>repl: fix JSON.parse error check</title>
<updated>2013-05-30T12:41:00+00:00</updated>
<author>
<name>Brian White</name>
<email>mscdex@mscdex.net</email>
</author>
<published>2013-05-26T16:26:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=774b28fde7035b076f5d80ade2ea293b18f2084b'/>
<id>774b28fde7035b076f5d80ade2ea293b18f2084b</id>
<content type='text'>
Before this, entering something like:

&gt; JSON.parse('066');

resulted in the "..." prompt instead of displaying the expected
"SyntaxError: Unexpected number"
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before this, entering something like:

&gt; JSON.parse('066');

resulted in the "..." prompt instead of displaying the expected
"SyntaxError: Unexpected number"
</pre>
</div>
</content>
</entry>
<entry>
<title>repl: isSyntaxError() catches "strict mode" errors</title>
<updated>2013-03-30T20:10:30+00:00</updated>
<author>
<name>Nathan Rajlich</name>
<email>nathan@tootallnate.net</email>
</author>
<published>2013-03-30T20:10:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=085f9d636b260724af2e80d6757e9d0f4bcd9193'/>
<id>085f9d636b260724af2e80d6757e9d0f4bcd9193</id>
<content type='text'>
Closes #5178.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #5178.
</pre>
</div>
</content>
</entry>
<entry>
<title>repl: make built-in modules available by default</title>
<updated>2013-01-12T20:10:29+00:00</updated>
<author>
<name>Felix Böhm</name>
<email>me@feedic.com</email>
</author>
<published>2013-01-12T20:07:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=9bce5e8f3e1bcfae0d0732a6d05fcd3a809c93b3'/>
<id>9bce5e8f3e1bcfae0d0732a6d05fcd3a809c93b3</id>
<content type='text'>
Closes #3564.
Closes #4578.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Closes #3564.
Closes #4578.
</pre>
</div>
</content>
</entry>
<entry>
<title>REPL: fix floating point number parsing</title>
<updated>2013-01-04T01:11:54+00:00</updated>
<author>
<name>Nirk Niggler</name>
<email>nirk.niggler@gmail.com</email>
</author>
<published>2013-01-03T14:27:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=0459a230631f6ff44f63d46396c474c13e6c232c'/>
<id>0459a230631f6ff44f63d46396c474c13e6c232c</id>
<content type='text'>
In JS, the expression ".1" is a floating point number.  Issue 4268 concerns the
REPL interpreting floating point numbers that lead with a "." as keywords.  The
original bugfix worked for this specific case but not for the general case:

    var x = [
        .1,
        .2,
        .3
    ];

The attached change and test (`.1+.1` should be `.2`) fix the bug.

Closes #4513.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In JS, the expression ".1" is a floating point number.  Issue 4268 concerns the
REPL interpreting floating point numbers that lead with a "." as keywords.  The
original bugfix worked for this specific case but not for the general case:

    var x = [
        .1,
        .2,
        .3
    ];

The attached change and test (`.1+.1` should be `.2`) fix the bug.

Closes #4513.
</pre>
</div>
</content>
</entry>
<entry>
<title>repl: don't interpret floating point numbers</title>
<updated>2012-11-10T17:21:17+00:00</updated>
<author>
<name>Ben Noordhuis</name>
<email>info@bnoordhuis.nl</email>
</author>
<published>2012-11-10T17:21:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=b6e989759bfcfdc00d9d4b5a3b32d31ea29838c0'/>
<id>b6e989759bfcfdc00d9d4b5a3b32d31ea29838c0</id>
<content type='text'>
Don't interpret floating point numbers, e.g. ".1234", as REPL commands.

Fixes #4268.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Don't interpret floating point numbers, e.g. ".1234", as REPL commands.

Fixes #4268.
</pre>
</div>
</content>
</entry>
<entry>
<title>repl: ensure each REPL instance gets its own "context"</title>
<updated>2012-10-12T23:37:17+00:00</updated>
<author>
<name>Nathan Rajlich</name>
<email>nathan@tootallnate.net</email>
</author>
<published>2012-10-12T23:34:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=b1e78cef097c682ed63528ad7efe294b18a9fb1d'/>
<id>b1e78cef097c682ed63528ad7efe294b18a9fb1d</id>
<content type='text'>
Before there was this weird module-scoped "context" variable which seemingly
shared the "context" of subsequent REPL instances, unless ".clear" was invoked
inside the REPL. To be proper, we need to ensure that each REPL gets its own
"context" object. I literally don't know why this "sharing" behavior was in place
before, but it was just plain wrong.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before there was this weird module-scoped "context" variable which seemingly
shared the "context" of subsequent REPL instances, unless ".clear" was invoked
inside the REPL. To be proper, we need to ensure that each REPL gets its own
"context" object. I literally don't know why this "sharing" behavior was in place
before, but it was just plain wrong.
</pre>
</div>
</content>
</entry>
<entry>
<title>repl: make "end of input" JSON.parse() errors throw in the REPL</title>
<updated>2012-10-01T18:36:06+00:00</updated>
<author>
<name>Nathan Rajlich</name>
<email>nathan@tootallnate.net</email>
</author>
<published>2012-10-01T18:36:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=3b7312d23af26d0c1bdcb977015bda7c4709f222'/>
<id>3b7312d23af26d0c1bdcb977015bda7c4709f222</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>repl: make invalid RegExp modifiers throw in the REPL</title>
<updated>2012-10-01T05:47:57+00:00</updated>
<author>
<name>Nathan Rajlich</name>
<email>nathan@tootallnate.net</email>
</author>
<published>2012-10-01T05:43:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/node.git/commit/?id=f1722a280c0b0505ecb2cd92cd66195a6d53368a'/>
<id>f1722a280c0b0505ecb2cd92cd66195a6d53368a</id>
<content type='text'>
Fixes #4012.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #4012.
</pre>
</div>
</content>
</entry>
</feed>
