| 15 | }; |
| 16 | |
| 17 | NAN_METHOD(SetAndGet) { |
| 18 | Dummy *d0 = new Dummy; |
| 19 | Dummy *d1 = NULL; |
| 20 | |
| 21 | v8::Isolate *isolate = v8::Isolate::GetCurrent(); |
| 22 | |
| 23 | SetIsolateData<Dummy>(isolate, d0); |
| 24 | d1 = GetIsolateData<Dummy>(isolate); |
| 25 | |
| 26 | delete d1; |
| 27 | |
| 28 | info.GetReturnValue().Set(New<v8::Boolean>(d0 == d1)); |
| 29 | } |
| 30 | |
| 31 | NAN_MODULE_INIT(Init) { |
| 32 | Set(target |
nothing calls this directly
no test coverage detected