File tree 3 files changed +5
-5
lines changed
stringbytes-external-exceed-max
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ void Method(const v8::FunctionCallbackInfo<v8::Value>& args) {
73
73
async_req* req = new async_req;
74
74
req->req .data = req;
75
75
76
- req->input = args[0 ]-> IntegerValue ();
76
+ req->input = args[0 ]. As <v8::Integer>()-> Value ();
77
77
req->output = 0 ;
78
78
req->isolate = isolate;
79
79
req->context = node::EmitAsyncInit (isolate, v8::Object::New (isolate), " test" );
Original file line number Diff line number Diff line change @@ -15,16 +15,16 @@ void Alloc(const v8::FunctionCallbackInfo<v8::Value>& args) {
15
15
v8::Isolate* isolate = args.GetIsolate ();
16
16
alive++;
17
17
18
- uintptr_t alignment = args[1 ]-> IntegerValue ();
19
- uintptr_t offset = args[2 ]-> IntegerValue ();
18
+ uintptr_t alignment = args[1 ]. As <v8::Integer>()-> Value ();
19
+ uintptr_t offset = args[2 ]. As <v8::Integer>()-> Value ();
20
20
21
21
uintptr_t static_offset = reinterpret_cast <uintptr_t >(buf) % alignment;
22
22
char * aligned = buf + (alignment - static_offset) + offset;
23
23
24
24
args.GetReturnValue ().Set (node::Buffer::New (
25
25
isolate,
26
26
aligned,
27
- args[0 ]-> IntegerValue (),
27
+ args[0 ]. As <v8::Integer>()-> Value (),
28
28
FreeCallback,
29
29
nullptr ).ToLocalChecked ());
30
30
}
Original file line number Diff line number Diff line change 4
4
5
5
void EnsureAllocation (const v8::FunctionCallbackInfo<v8::Value> &args) {
6
6
v8::Isolate* isolate = args.GetIsolate ();
7
- uintptr_t size = args[0 ]-> IntegerValue ();
7
+ uintptr_t size = args[0 ]. As <v8::Integer>()-> Value ();
8
8
v8::Local<v8::Boolean > success;
9
9
10
10
void * buffer = malloc (size);
You can’t perform that action at this time.
0 commit comments