| 9 | int testData = 1; |
| 10 | |
| 11 | Boolean EmptyConstructor(const CallbackInfo& info) { |
| 12 | auto env = info.Env(); |
| 13 | bool isEmpty = info[0].As<Boolean>(); |
| 14 | Function function = isEmpty ? Function() : Function(env, Object::New(env)); |
| 15 | return Boolean::New(env, function.IsEmpty()); |
| 16 | } |
| 17 | |
| 18 | void VoidCallback(const CallbackInfo& info) { |
| 19 | auto env = info.Env(); |