projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56f263a
)
src/Palete/Javascript.vala
author
Alan Knowles
<alan@roojs.com>
Thu, 19 Mar 2015 10:37:22 +0000
(18:37 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 19 Mar 2015 10:37:22 +0000
(18:37 +0800)
src/Palete/Javascript.vala
patch
|
blob
|
history
diff --git
a/src/Palete/Javascript.vala
b/src/Palete/Javascript.vala
index
7dcc10b
..
51a1365
100644
(file)
--- a/
src/Palete/Javascript.vala
+++ b/
src/Palete/Javascript.vala
@@
-184,6
+184,12
@@
namespace Palete {
unowned JSCore.Value res = oval.call_as_function(ctx, othis, null, out exd);
// extract the text value from res...
var sv = rs.to_string_copy ( ctx, out exe);
+ var length = sv.get_maximum_utf8_c_string_size();
+ var buf = new string[length];
+
+ sv.get_utf8_c_string( buf, length);
+ printf("ret:%s\n", buf);
+ }
}