therubyracer 0.9.8 → 0.9.9
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of therubyracer might be problematic. Click here for more details.
- data/ext/v8/v8_function.cpp +5 -4
- data/lib/v8/version.rb +1 -1
- metadata +12 -12
data/ext/v8/v8_function.cpp
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
|
2
|
+
#include <vector>
|
2
3
|
#include "v8_function.h"
|
3
4
|
#include "v8_object.h"
|
4
5
|
#include "v8_handle.h"
|
@@ -21,11 +22,11 @@ namespace {
|
|
21
22
|
Local<Object> thisObj = rr_rb2v8(recv)->ToObject();
|
22
23
|
Handle<Array> args = rr_v8_handle<Array>(arguments);
|
23
24
|
int argc = args->Length();
|
24
|
-
Handle<Value> argv
|
25
|
+
std::vector< Handle<Value> > argv (argc);
|
25
26
|
for (int i = 0; i < argc; i++) {
|
26
27
|
argv[i] = args->Get(i);
|
27
28
|
}
|
28
|
-
return rr_v82rb(function->Call(thisObj, argc, argv));
|
29
|
+
return rr_v82rb(function->Call(thisObj, argc, &argv[0]));
|
29
30
|
}
|
30
31
|
|
31
32
|
VALUE NewInstance(VALUE self, VALUE arguments) {
|
@@ -33,11 +34,11 @@ namespace {
|
|
33
34
|
Handle<Function> function = unwrap(self);
|
34
35
|
Handle<Array> args = rr_v8_handle<Array>(arguments);
|
35
36
|
int argc = args->Length();
|
36
|
-
Handle<Value> argv
|
37
|
+
std::vector< Handle<Value> > argv (argc);
|
37
38
|
for (int i = 0; i < argc; i++) {
|
38
39
|
argv[i] = args->Get(i);
|
39
40
|
}
|
40
|
-
return rr_v82rb(function->NewInstance(argc, argv));
|
41
|
+
return rr_v82rb(function->NewInstance(argc, &argv[0]));
|
41
42
|
}
|
42
43
|
VALUE GetName(VALUE self) {
|
43
44
|
HandleScope scope;
|
data/lib/v8/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: therubyracer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.9
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-11-08 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: libv8
|
17
|
-
requirement: &
|
17
|
+
requirement: &2152907640 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: 3.3.10
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2152907640
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: rake
|
28
|
-
requirement: &
|
28
|
+
requirement: &2152906840 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2152906840
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: rspec
|
39
|
-
requirement: &
|
39
|
+
requirement: &2152905900 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: '2.0'
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *2152905900
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: rake-compiler
|
50
|
-
requirement: &
|
50
|
+
requirement: &2152904360 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ! '>='
|
@@ -55,7 +55,7 @@ dependencies:
|
|
55
55
|
version: '0'
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *2152904360
|
59
59
|
description: Call javascript code and manipulate javascript objects from ruby. Call
|
60
60
|
ruby code and manipulate ruby objects from javascript.
|
61
61
|
email: cowboyd@thefrontside.net
|
@@ -172,7 +172,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
172
172
|
version: '0'
|
173
173
|
segments:
|
174
174
|
- 0
|
175
|
-
hash:
|
175
|
+
hash: 1116440455134102197
|
176
176
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
177
177
|
none: false
|
178
178
|
requirements:
|
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
version: '0'
|
182
182
|
segments:
|
183
183
|
- 0
|
184
|
-
hash:
|
184
|
+
hash: 1116440455134102197
|
185
185
|
requirements: []
|
186
186
|
rubyforge_project: therubyracer
|
187
187
|
rubygems_version: 1.8.10
|