| 172 | } |
| 173 | |
| 174 | Value Construct(const CallbackInfo& info) { |
| 175 | EscapableHandleScope scope(info.Env()); |
| 176 | FunctionReference ref; |
| 177 | ref.Reset(info[0].As<Function>()); |
| 178 | |
| 179 | return scope.Escape(MaybeUnwrapOr(ref.New({}), Object())); |
| 180 | } |
| 181 | } // namespace |
| 182 | |
| 183 | Object InitFunctionReference(Env env) { |