aboutsummaryrefslogtreecommitdiffstats
path: root/jsre/jsre_test.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-08-14 19:14:11 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-08-14 19:14:11 +0800
commit3a66c4ed477cde437705f02811225fa11b0ae5ff (patch)
tree4fb74e85fc85ad9cf532d6f0b24e31a821c15fa7 /jsre/jsre_test.go
parent29181003d4f50611a9082805509eed425c81db1a (diff)
parent0ef80bb3d05ecb44297d25c889a85555bc55ef0c (diff)
downloaddexon-3a66c4ed477cde437705f02811225fa11b0ae5ff.tar
dexon-3a66c4ed477cde437705f02811225fa11b0ae5ff.tar.gz
dexon-3a66c4ed477cde437705f02811225fa11b0ae5ff.tar.bz2
dexon-3a66c4ed477cde437705f02811225fa11b0ae5ff.tar.lz
dexon-3a66c4ed477cde437705f02811225fa11b0ae5ff.tar.xz
dexon-3a66c4ed477cde437705f02811225fa11b0ae5ff.tar.zst
dexon-3a66c4ed477cde437705f02811225fa11b0ae5ff.zip
Merge pull request #1642 from ethereum/fix-js-console-windows
cmd/geth, jsre: restore command line editing on windows
Diffstat (limited to 'jsre/jsre_test.go')
-rw-r--r--jsre/jsre_test.go11
1 files changed, 3 insertions, 8 deletions
diff --git a/jsre/jsre_test.go b/jsre/jsre_test.go
index 93dc7d1f9..8450f546c 100644
--- a/jsre/jsre_test.go
+++ b/jsre/jsre_test.go
@@ -103,19 +103,14 @@ func TestNatto(t *testing.T) {
func TestBind(t *testing.T) {
jsre := New("")
+ defer jsre.Stop(false)
jsre.Bind("no", &testNativeObjectBinding{})
- val, err := jsre.Run(`no.TestMethod("testMsg")`)
+ _, err := jsre.Run(`no.TestMethod("testMsg")`)
if err != nil {
t.Errorf("expected no error, got %v", err)
}
- pp, err := jsre.PrettyPrint(val)
- if err != nil {
- t.Errorf("expected no error, got %v", err)
- }
- t.Logf("no: %v", pp)
- jsre.Stop(false)
}
func TestLoadScript(t *testing.T) {
@@ -139,4 +134,4 @@ func TestLoadScript(t *testing.T) {
t.Errorf("expected '%v', got '%v'", exp, got)
}
jsre.Stop(false)
-} \ No newline at end of file
+}