@@ -44,7 +44,6 @@ First we create a file `hello.cc`:
44
44
namespace demo {
45
45
46
46
using v8::FunctionCallbackInfo;
47
- using v8::HandleScope;
48
47
using v8::Isolate;
49
48
using v8::Local;
50
49
using v8::Object;
@@ -155,7 +154,6 @@ function calls and return a result. This is the main and only needed source
155
154
156
155
using v8::Exception;
157
156
using v8::FunctionCallbackInfo;
158
- using v8::HandleScope;
159
157
using v8::Isolate;
160
158
using v8::Local;
161
159
using v8::Number;
@@ -212,7 +210,6 @@ there. Here's `addon.cc`:
212
210
213
211
using v8::Function;
214
212
using v8::FunctionCallbackInfo;
215
- using v8::HandleScope;
216
213
using v8::Isolate;
217
214
using v8::Local;
218
215
using v8::Null;
@@ -263,7 +260,6 @@ the string passed to `createObject()`:
263
260
namespace demo {
264
261
265
262
using v8::FunctionCallbackInfo;
266
- using v8::HandleScope;
267
263
using v8::Isolate;
268
264
using v8::Local;
269
265
using v8::Object;
@@ -310,7 +306,6 @@ wraps a C++ function:
310
306
using v8::Function;
311
307
using v8::FunctionCallbackInfo;
312
308
using v8::FunctionTemplate;
313
- using v8::HandleScope;
314
309
using v8::Isolate;
315
310
using v8::Local;
316
311
using v8::Object;
@@ -415,7 +410,6 @@ prototype:
415
410
using v8::Function;
416
411
using v8::FunctionCallbackInfo;
417
412
using v8::FunctionTemplate;
418
- using v8::HandleScope;
419
413
using v8::Isolate;
420
414
using v8::Local;
421
415
using v8::Number;
@@ -505,7 +499,6 @@ Let's register our `createObject` method in `addon.cc`:
505
499
namespace demo {
506
500
507
501
using v8::FunctionCallbackInfo;
508
- using v8::HandleScope;
509
502
using v8::Isolate;
510
503
using v8::Local;
511
504
using v8::Object;
@@ -568,7 +561,6 @@ The implementation is similar to the above in `myobject.cc`:
568
561
using v8::Function;
569
562
using v8::FunctionCallbackInfo;
570
563
using v8::FunctionTemplate;
571
- using v8::HandleScope;
572
564
using v8::Isolate;
573
565
using v8::Local;
574
566
using v8::Number;
@@ -668,7 +660,6 @@ In the following `addon.cc` we introduce a function `add()` that can take on two
668
660
namespace demo {
669
661
670
662
using v8::FunctionCallbackInfo;
671
- using v8::HandleScope;
672
663
using v8::Isolate;
673
664
using v8::Local;
674
665
using v8::Number;
@@ -745,7 +736,6 @@ The implementation of `myobject.cc` is similar as before:
745
736
using v8::Function;
746
737
using v8::FunctionCallbackInfo;
747
738
using v8::FunctionTemplate;
748
- using v8::HandleScope;
749
739
using v8::Isolate;
750
740
using v8::Local;
751
741
using v8::Object;
0 commit comments