Skip to content

Commit

Permalink
Fix for length 0 vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Mar 3, 2016
1 parent 87c0a3d commit 7163157
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions R/V8.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,7 @@ v8 <- function(global = "global", console = TRUE, typed_arrays = TRUE) {
# Public methods
this <- local({
eval <- function(src){
if(length(src) > 1){
src <- join(src)
}
get_str_output(context_eval(src, private$context));
get_str_output(context_eval(join(src), private$context));
}
validate <- function(src){
context_validate(join(src), private$context)
Expand Down

0 comments on commit 7163157

Please sign in to comment.