diff options
author | Anna Henningsen <anna@addaleax.net> | 2016-04-14 02:21:49 +0200 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2016-04-14 08:23:23 -0400 |
commit | 0b66b8f2d2c3aceba5e65c4b4ba428b7fabd3cb5 (patch) | |
tree | 278bc140fb9a88a13e157b1553f48f4e90ac3707 /deps/npm | |
parent | 0b1d89f35a43c27e4aa666c41defb39e586d39f2 (diff) | |
download | android-node-v8-0b66b8f2d2c3aceba5e65c4b4ba428b7fabd3cb5.tar.gz android-node-v8-0b66b8f2d2c3aceba5e65c4b4ba428b7fabd3cb5.tar.bz2 android-node-v8-0b66b8f2d2c3aceba5e65c4b4ba428b7fabd3cb5.zip |
repl: don’t complete non-simple expressions
Change the regular expression that recognizes “simple” JS expressions
to requiring that the full line needs to match it.
Previously, in terms like `a().b.`, `b.` would be a partial match.
This meant that completion would evaluate `b` and either fail with
a `ReferenceError` or, if `b` was some global, return the properties
of the global `b` object.
PR-URL: https://github.com/nodejs/node/pull/6192
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'deps/npm')
0 files changed, 0 insertions, 0 deletions