title: Variable argument list to JavascriptCore block
body: <p>I'd like to define a function in the JavascriptCore context that takes a variable amount of arguments.</p>
  
  <p>Something like this:</p>
  
  <pre><code>JSVirtualMachine* virtualMachine = [[JSVirtualMachine alloc] init];
  JSContext* ctx = [[JSContext alloc] initWithVirtualMachine:virtualMachine];
  
  ctx[@"func"] = ^(JSValue* value, ...){
      va_list args;
      va_start(args, value);
      for (JSValue *arg = value; arg != nil; arg = va_arg(args, JSValue*)) {
          NSLog( @"%@", arg);
      }
      va_end(args);
  };
  
  [ctx evaluateScript:@"func('arg1', 'arg2');"];
  </code></pre>
  
  <p>I believe that the JSC wrapper doesn't pass the second argument to the block, because iterating on <code>va_list</code> crashes after logging the first argument.</p>
  
  <p>I also tried with the <code>NSArray*</code> convention, it doesn't work.</p>
  
  <p>Is this possible in any way?</p>