[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master b920afc 043/215: trepanjs: handle eval properly
From: |
Rocky Bernstein |
Subject: |
[elpa] master b920afc 043/215: trepanjs: handle eval properly |
Date: |
Sat, 30 Jul 2016 14:48:52 +0000 (UTC) |
branch: master
commit b920afc8144ce5f10bc35892abd09c038251728c
Author: rocky <address@hidden>
Commit: rocky <address@hidden>
trepanjs: handle eval properly
test/gcd.js: more useful
---
realgud/debugger/trepanjs/init.el | 1 +
test/gcd.js | 14 ++++++--------
2 files changed, 7 insertions(+), 8 deletions(-)
diff --git a/realgud/debugger/trepanjs/init.el
b/realgud/debugger/trepanjs/init.el
index 856c06a..4bd2b39 100644
--- a/realgud/debugger/trepanjs/init.el
+++ b/realgud/debugger/trepanjs/init.el
@@ -136,5 +136,6 @@ realgud-loc-pat struct")
;; it will probably look like step(1)
(setf (gethash "step" realgud:trepanjs-command-hash) "step")
(setf (gethash "next" realgud:trepanjs-command-hash) "next")
+(setf (gethash "eval" realgud:trepanjs-command-hash) "eval('%s')")
(provide-me "realgud:trepanjs-")
diff --git a/test/gcd.js b/test/gcd.js
index 6d7ce32..ee56555 100644
--- a/test/gcd.js
+++ b/test/gcd.js
@@ -37,11 +37,9 @@ function gcd(a, b) {
return gcd(b-a, a);
}
-var a=24;
-
-ask("GCD of 24 and", /^\d+$/, function(b_str) {
- var b = parseInt(b_str, 10);
- console.log(util.format("The GCD of %d and %d is %d", a, b,
- gcd(a, b)));
- process.exit();
-});
+var a = parseInt(process.argv[0]) || 24,
+ b = parseInt(process.argv[0]) || 5;
+
+console.log(util.format("The GCD of %d and %d is %d", a, b,
+ gcd(a, b)));
+process.exit();
- [elpa] master 3a0b837 022/215: Update README.md to note that we can use in eshell, (continued)
- [elpa] master 3a0b837 022/215: Update README.md to note that we can use in eshell, Rocky Bernstein, 2016/07/30
- [elpa] master 886f741 024/215: Make sure we go into realgud-track mode when we have custom mode, Rocky Bernstein, 2016/07/30
- [elpa] master dc0b45b 034/215: Revert "Squelch one of the many compiler warnings", Rocky Bernstein, 2016/07/30
- [elpa] master b8d8686 032/215: Squelch one of the many compiler warnings, Rocky Bernstein, 2016/07/30
- [elpa] master 266e5df 021/215: Small error message grammar correction, Rocky Bernstein, 2016/07/30
- [elpa] master e2c3271 015/215: Minimal support for running under eshell, Rocky Bernstein, 2016/07/30
- [elpa] master 33bfa6f 033/215: Squelch one of the many compiler warnings, Rocky Bernstein, 2016/07/30
- [elpa] master 395db6d 016/215: Simplify eshell/comint/shell mode testing., Rocky Bernstein, 2016/07/30
- [elpa] master 2acb30c 031/215: Start js lang. add js backtrace regexp, Rocky Bernstein, 2016/07/30
- [elpa] master 1868152 025/215: core.el: remove duplicate command buffer creation, Rocky Bernstein, 2016/07/30
- [elpa] master b920afc 043/215: trepanjs: handle eval properly,
Rocky Bernstein <=
- [elpa] master ea27a82 026/215: More copyright assignments to FSF, Rocky Bernstein, 2016/07/30
- [elpa] master 3d74bb5 013/215: More FSF copyright assignments., Rocky Bernstein, 2016/07/30
- [elpa] master 0e68d8d 038/215: common/regexp.el: start to DRY regexps, Rocky Bernstein, 2016/07/30
- [elpa] master 03ecacd 049/215: trepanjs msg change: stop in -> call in, Rocky Bernstein, 2016/07/30
- [elpa] master 986585b 035/215: Revert "Squelch one of the many compiler warnings", Rocky Bernstein, 2016/07/30
- [elpa] master 78aba8b 044/215: DRY with respect to realgud:regexp-captured-num, Rocky Bernstein, 2016/07/30
- [elpa] master bfa52c5 046/215: caddr -> cl-caddr. Fill in %s on format., Rocky Bernstein, 2016/07/30
- [elpa] master 0a1dbc4 036/215: Remove node asci schmutz. put in lang/js.el, Rocky Bernstein, 2016/07/30
- [elpa] master 74eedc2 030/215: Start js lang. add js backtrace regexp, Rocky Bernstein, 2016/07/30
- [elpa] master 6df0f6a 051/215: trepanjs location format has changed, Rocky Bernstein, 2016/07/30