Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit 5d09e42

Browse files
committed
implement ObjectTemplte#Set()
1 parent 4e880b1 commit 5d09e42

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

ext/v8/init.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ using namespace rr;
88

99
extern "C" {
1010
void Init_init() {
11+
rb_eval_string("require 'v8/c'");
12+
1113
V8::Init();
1214
Isolate::Init();
1315
Handles::Init();

ext/v8/template.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace rr {
1717
VALUE name, value, r_attributes;
1818
rb_scan_args(argc, argv, "21", &name, &value, &r_attributes);
1919
v8::PropertyAttribute attributes(v8::PropertyAttribute::None);
20-
if (RTEST(attributes)) {
20+
if (RTEST(r_attributes)) {
2121
attributes = (v8::PropertyAttribute)NUM2INT(r_attributes);
2222
}
2323
v8::Local<v8::Value> val = Value(value);

spec/c_spec_helper.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
require 'v8/weak'
2-
require 'v8/c/maybe'
31
require 'v8/init'
42

53
module V8ContextHelpers

0 commit comments

Comments
 (0)