idada/v8.go — pull request #37 by leocassarani (2014-06-19 20:26:26+00:00)
Title: Allow NewInstance() on v8.Function to take arguments

Previously, `NewInstance()` didn't support the ability to pass in arguments. So if you had a `v8.Function` like the following:

```javascript
function MyClass(x, y) {
this.x = x;
this.y = y;
}
```

You wouldn't have been able to pass any values for `x` and `y` into the `MyClass` constructor.

This pull request adds the ability to (optionally) pass in arguments by adapting the logic from the `Call()` method to delegate to the version of `NewInstance` that takes `argc` and `argv` arguments.