/base/notification/common_event_service/interfaces/kits/napi/common_event/src/ |
D | common_event_parse.cpp | 67 napi_valuetype valuetype; in ParseParametersByCreateSubscriber() local 70 NAPI_CALL(env, napi_typeof(env, argv[0], &valuetype)); in ParseParametersByCreateSubscriber() 71 if (valuetype != napi_object) { in ParseParametersByCreateSubscriber() 78 NAPI_CALL(env, napi_typeof(env, argv[1], &valuetype)); in ParseParametersByCreateSubscriber() 79 if (valuetype != napi_function) { in ParseParametersByCreateSubscriber() 126 napi_valuetype valuetype; in ParseParametersByIsOrderedCommonEvent() local 130 NAPI_CALL(env, napi_typeof(env, argv[0], &valuetype)); in ParseParametersByIsOrderedCommonEvent() 131 if (valuetype != napi_function) { in ParseParametersByIsOrderedCommonEvent() 161 napi_valuetype valuetype; in ParseParametersByIsStickyCommonEvent() local 165 NAPI_CALL(env, napi_typeof(env, argv[0], &valuetype)); in ParseParametersByIsStickyCommonEvent() [all …]
|
/base/location/frameworks/native/notification/src/ |
D | notification_napi.cpp | 50 napi_valuetype valuetype = napi_undefined; in GetNotificationSubscriberInfo() local 71 NAPI_CALL(env, napi_typeof(env, nBundleName, &valuetype)); in GetNotificationSubscriberInfo() 72 if (valuetype != napi_string) { in GetNotificationSubscriberInfo() 87 NAPI_CALL(env, napi_typeof(env, nUserId, &valuetype)); in GetNotificationSubscriberInfo() 88 if (valuetype != napi_number) { in GetNotificationSubscriberInfo() 103 napi_valuetype valuetype = napi_undefined; in GetNotificationUserInput() local 111 NAPI_CALL(env, napi_typeof(env, userInputResult, &valuetype)); in GetNotificationUserInput() 112 if (valuetype != napi_object) { in GetNotificationUserInput() 131 napi_valuetype valuetype = napi_undefined; in GetNotificationUserInputByInputKey() local 144 NAPI_CALL(env, napi_typeof(env, value, &valuetype)); in GetNotificationUserInputByInputKey() [all …]
|
D | notification_napi_convert_request.cpp | 225 napi_valuetype valuetype = napi_undefined; in GetNotificationSmallIcon() local 232 NAPI_CALL(env, napi_typeof(env, result, &valuetype)); in GetNotificationSmallIcon() 233 if (valuetype != napi_object) { in GetNotificationSmallIcon() 254 napi_valuetype valuetype = napi_undefined; in GetNotificationLargeIcon() local 261 NAPI_CALL(env, napi_typeof(env, result, &valuetype)); in GetNotificationLargeIcon() 262 if (valuetype != napi_object) { in GetNotificationLargeIcon() 283 napi_valuetype valuetype = napi_undefined; in GetNotificationOverlayIcon() local 290 NAPI_CALL(env, napi_typeof(env, result, &valuetype)); in GetNotificationOverlayIcon() 291 if (valuetype != napi_object) { in GetNotificationOverlayIcon() 314 napi_valuetype valuetype = napi_undefined; in GetNotificationSupportDisplayDevices() local [all …]
|
D | notification_napi_convert_content.cpp | 123 napi_valuetype valuetype = napi_undefined; in GetNotificationBasicContent() local 132 NAPI_CALL(env, napi_typeof(env, contentResult, &valuetype)); in GetNotificationBasicContent() 133 if (valuetype != napi_object) { in GetNotificationBasicContent() 212 napi_valuetype valuetype = napi_undefined; in GetNotificationLongTextContent() local 223 NAPI_CALL(env, napi_typeof(env, contentResult, &valuetype)); in GetNotificationLongTextContent() 224 if (valuetype != napi_object) { in GetNotificationLongTextContent() 251 napi_valuetype valuetype = napi_undefined; in GetNotificationLongTextContentDetailed() local 269 NAPI_CALL(env, napi_typeof(env, longContentResult, &valuetype)); in GetNotificationLongTextContentDetailed() 270 if (valuetype != napi_string) { in GetNotificationLongTextContentDetailed() 289 NAPI_CALL(env, napi_typeof(env, longContentResult, &valuetype)); in GetNotificationLongTextContentDetailed() [all …]
|
D | notification_napi_convert_liveview.cpp | 38 napi_valuetype valuetype = napi_undefined; in GetNotificationLocalLiveViewContent() local 47 NAPI_CALL(env, napi_typeof(env, contentResult, &valuetype)); in GetNotificationLocalLiveViewContent() 48 if (valuetype != napi_object) { in GetNotificationLocalLiveViewContent() 77 napi_valuetype valuetype = napi_undefined; in GetNotificationLocalLiveViewCapsule() local 89 NAPI_CALL(env, napi_typeof(env, capsuleResult, &valuetype)); in GetNotificationLocalLiveViewCapsule() 90 if (valuetype != napi_object) { in GetNotificationLocalLiveViewCapsule() 100 NAPI_CALL(env, napi_typeof(env, result, &valuetype)); in GetNotificationLocalLiveViewCapsule() 101 if (valuetype != napi_string) { in GetNotificationLocalLiveViewCapsule() 114 NAPI_CALL(env, napi_typeof(env, result, &valuetype)); in GetNotificationLocalLiveViewCapsule() 115 if (valuetype != napi_string) { in GetNotificationLocalLiveViewCapsule() [all …]
|
D | notification_napi_convert_notification.cpp | 37 napi_valuetype valuetype = napi_undefined; in GetNotificationRequestDistributedOptions() local 45 NAPI_CALL(env, napi_typeof(env, result, &valuetype)); in GetNotificationRequestDistributedOptions() 46 if (valuetype != napi_object) { in GetNotificationRequestDistributedOptions() 75 napi_valuetype valuetype = napi_undefined; in GetNotificationIsDistributed() local 83 NAPI_CALL(env, napi_typeof(env, result, &valuetype)); in GetNotificationIsDistributed() 84 if (valuetype != napi_boolean) { in GetNotificationIsDistributed()
|
/base/notification/common_event_service/interfaces/kits/napi/napi_common_event/src/ |
D | common_event_parse.cpp | 124 napi_valuetype valuetype; in ParseParametersByCreateSubscriber() local 127 NAPI_CALL(env, napi_typeof(env, argv[0], &valuetype)); in ParseParametersByCreateSubscriber() 128 if (valuetype != napi_object) { in ParseParametersByCreateSubscriber() 137 NAPI_CALL(env, napi_typeof(env, argv[1], &valuetype)); in ParseParametersByCreateSubscriber() 138 if (valuetype != napi_function) { in ParseParametersByCreateSubscriber() 183 napi_valuetype valuetype; in ParseParametersByGetSubscribeInfo() local 187 NAPI_CALL(env, napi_typeof(env, argv[0], &valuetype)); in ParseParametersByGetSubscribeInfo() 188 if (valuetype != napi_function) { in ParseParametersByGetSubscribeInfo() 220 napi_valuetype valuetype; in ParseParametersByIsOrderedCommonEvent() local 224 NAPI_CALL(env, napi_typeof(env, argv[0], &valuetype)); in ParseParametersByIsOrderedCommonEvent() [all …]
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
D | cancel.cpp | 42 napi_valuetype valuetype = napi_undefined; in ParseParameters() local 44 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valuetype)); in ParseParameters() 45 if (valuetype != napi_number && valuetype != napi_object) { in ParseParameters() 52 if (valuetype == napi_number) { in ParseParameters() 66 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 67 if (valuetype == napi_undefined || valuetype == napi_null) { in ParseParameters() 70 if (valuetype != napi_number && valuetype != napi_boolean && in ParseParameters() 71 valuetype != napi_string && valuetype != napi_function) { in ParseParameters() 77 if (valuetype == napi_number) { in ParseParameters() 81 } else if (valuetype == napi_boolean) { in ParseParameters() [all …]
|
D | common.cpp | 295 napi_valuetype valuetype = napi_undefined; in GetNotificationSubscriberInfo() local 316 NAPI_CALL(env, napi_typeof(env, nBundleName, &valuetype)); in GetNotificationSubscriberInfo() 317 if (valuetype != napi_string) { in GetNotificationSubscriberInfo() 332 NAPI_CALL(env, napi_typeof(env, nUserId, &valuetype)); in GetNotificationSubscriberInfo() 333 if (valuetype != napi_number) { in GetNotificationSubscriberInfo() 348 NAPI_CALL(env, napi_typeof(env, nDeviceType, &valuetype)); in GetNotificationSubscriberInfo() 349 if (valuetype != napi_string) { in GetNotificationSubscriberInfo() 369 napi_valuetype valuetype = napi_undefined; in GetNotificationUserInput() local 377 NAPI_CALL(env, napi_typeof(env, userInputResult, &valuetype)); in GetNotificationUserInput() 378 if (valuetype != napi_object) { in GetNotificationUserInput() [all …]
|
D | common_convert_request.cpp | 234 napi_valuetype valuetype = napi_undefined; in SetNotificationRequestByPixelMap() local 236 NAPI_CALL(env, napi_typeof(env, smallIconResult, &valuetype)); in SetNotificationRequestByPixelMap() 237 if (valuetype == napi_undefined) { in SetNotificationRequestByPixelMap() 249 napi_valuetype valuetype = napi_undefined; in SetNotificationRequestByPixelMap() local 251 NAPI_CALL(env, napi_typeof(env, largeIconResult, &valuetype)); in SetNotificationRequestByPixelMap() 252 if (valuetype == napi_undefined) { in SetNotificationRequestByPixelMap() 264 napi_valuetype valuetype = napi_undefined; in SetNotificationRequestByPixelMap() local 266 NAPI_CALL(env, napi_typeof(env, overlayIconResult, &valuetype)); in SetNotificationRequestByPixelMap() 267 if (valuetype == napi_undefined) { in SetNotificationRequestByPixelMap() 410 napi_valuetype valuetype = napi_undefined; in SetNotificationActionButton() local [all …]
|
D | common_convert_content.cpp | 231 napi_valuetype valuetype = napi_undefined; in SetNotificationPictureContent() local 233 NAPI_CALL(env, napi_typeof(env, pictureResult, &valuetype)); in SetNotificationPictureContent() 234 if (valuetype == napi_undefined) { in SetNotificationPictureContent() 365 napi_valuetype valuetype = napi_undefined; in SetMessageUser() local 367 NAPI_CALL(env, napi_typeof(env, iconResult, &valuetype)); in SetMessageUser() 368 if (valuetype == napi_undefined) { in SetMessageUser() 511 napi_valuetype valuetype = napi_undefined; in GetNotificationBasicContent() local 520 NAPI_CALL(env, napi_typeof(env, contentResult, &valuetype)); in GetNotificationBasicContent() 521 if (valuetype != napi_object) { in GetNotificationBasicContent() 600 napi_valuetype valuetype = napi_undefined; in GetNotificationLongTextContent() local [all …]
|
D | publish.cpp | 38 napi_valuetype valuetype = napi_undefined; in GetCallback() local 39 NAPI_CALL(env, napi_typeof(env, value, &valuetype)); in GetCallback() 40 if (valuetype != napi_function) { in GetCallback() 62 napi_valuetype valuetype = napi_undefined; in ParseParameters() local 63 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valuetype)); in ParseParameters() 64 if (valuetype != napi_object) { in ParseParameters() 78 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 79 if ((valuetype != napi_number) && (valuetype != napi_function)) { in ParseParameters() 84 if (valuetype == napi_number) { in ParseParameters() 193 napi_valuetype valuetype = napi_undefined; in GetStringProperty() local [all …]
|
D | disturb_mode.cpp | 33 napi_valuetype valuetype = napi_undefined; in GetDoNotDisturbDate() local 42 NAPI_CALL(env, napi_typeof(env, value, &valuetype)); in GetDoNotDisturbDate() 43 if (valuetype != napi_number) { in GetDoNotDisturbDate() 115 napi_valuetype valuetype = napi_undefined; in GetDoNotDisturbProfile() local 116 NAPI_CALL_BASE(env, napi_typeof(env, obj, &valuetype), false); in GetDoNotDisturbProfile() 117 if (valuetype != napi_number) { in GetDoNotDisturbProfile() 135 NAPI_CALL_BASE(env, napi_typeof(env, obj, &valuetype), false); in GetDoNotDisturbProfile() 136 if (valuetype != napi_string) { in GetDoNotDisturbProfile() 172 napi_valuetype valuetype = napi_undefined; in AnalyseTrustlist() local 173 NAPI_CALL_BASE(env, napi_typeof(env, nOption, &valuetype), false); in AnalyseTrustlist() [all …]
|
D | common_convert_liveview.cpp | 128 napi_valuetype valuetype = napi_undefined; in SetCapsule() local 130 NAPI_CALL(env, napi_typeof(env, iconResult, &valuetype)); in SetCapsule() 131 if (valuetype == napi_undefined) { in SetCapsule() 315 napi_valuetype valuetype = napi_undefined; in GetNotificationLocalLiveViewContent() local 324 NAPI_CALL(env, napi_typeof(env, contentResult, &valuetype)); in GetNotificationLocalLiveViewContent() 325 if (valuetype != napi_object) { in GetNotificationLocalLiveViewContent() 354 napi_valuetype valuetype = napi_undefined; in GetNotificationLocalLiveViewCapsule() local 366 NAPI_CALL(env, napi_typeof(env, capsuleResult, &valuetype)); in GetNotificationLocalLiveViewCapsule() 367 if (valuetype != napi_object) { in GetNotificationLocalLiveViewCapsule() 377 NAPI_CALL(env, napi_typeof(env, result, &valuetype)); in GetNotificationLocalLiveViewCapsule() [all …]
|
D | ans_template.cpp | 37 napi_valuetype valuetype = napi_undefined; in ParseParameters() local 39 NAPI_CALL(env, napi_typeof(env, argv[0], &valuetype)); in ParseParameters() 40 if (valuetype != napi_string && valuetype != napi_number && valuetype != napi_boolean) { in ParseParameters() 46 if (valuetype == napi_string) { in ParseParameters() 51 } else if (valuetype == napi_number) { in ParseParameters() 63 NAPI_CALL(env, napi_typeof(env, argv[1], &valuetype)); in ParseParameters() 64 if (valuetype != napi_function) { in ParseParameters()
|
D | display_badge.cpp | 41 napi_valuetype valuetype = napi_undefined; in ParseParameters() local 42 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valuetype)); in ParseParameters() 43 if (valuetype != napi_object) { in ParseParameters() 58 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 59 if (valuetype != napi_boolean) { in ParseParameters() 69 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters() 70 if (valuetype != napi_function) { in ParseParameters() 96 napi_valuetype valuetype = napi_undefined; in ParseParameters() local 97 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valuetype)); in ParseParameters() 99 if ((valuetype != napi_function) && (valuetype != napi_object)) { in ParseParameters() [all …]
|
D | slot.cpp | 222 napi_valuetype valuetype = napi_undefined; in ParseParametersByAddSlot() local 224 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valuetype)); in ParseParametersByAddSlot() 225 if (valuetype != napi_object && valuetype != napi_number) { in ParseParametersByAddSlot() 231 if (valuetype == napi_number) { in ParseParametersByAddSlot() 247 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParametersByAddSlot() 248 if (valuetype != napi_function) { in ParseParametersByAddSlot() 272 napi_valuetype valuetype = napi_undefined; in ParseParametersByAddSlots() local 293 NAPI_CALL(env, napi_typeof(env, nSlot, &valuetype)); in ParseParametersByAddSlots() 294 if (valuetype != napi_object) { in ParseParametersByAddSlots() 309 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParametersByAddSlots() [all …]
|
D | remove.cpp | 175 napi_valuetype valuetype = napi_undefined; in ParseParametersByRemoveAll() local 176 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valuetype)); in ParseParametersByRemoveAll() 177 if ((valuetype != napi_object) && (valuetype != napi_number) && (valuetype != napi_function)) { in ParseParametersByRemoveAll() 181 if (valuetype == napi_object) { in ParseParametersByRemoveAll() 190 } else if (valuetype == napi_number) { in ParseParametersByRemoveAll() 199 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParametersByRemoveAll() 200 if (valuetype != napi_function) { in ParseParametersByRemoveAll() 218 napi_valuetype valuetype = napi_undefined; in ParseParameters() local 227 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valuetype)); in ParseParameters() 228 if (valuetype != napi_object) { in ParseParameters() [all …]
|
D | distributed.cpp | 43 napi_valuetype valuetype = napi_undefined; in ParseParameters() local 46 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valuetype)); in ParseParameters() 47 if (valuetype != napi_boolean) { in ParseParameters() 57 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 58 if (valuetype != napi_function) { in ParseParameters() 83 napi_valuetype valuetype = napi_undefined; in ParseParameters() local 84 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valuetype)); in ParseParameters() 85 if (valuetype != napi_object) { in ParseParameters() 99 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 100 if (valuetype != napi_boolean) { in ParseParameters() [all …]
|
D | enable_notification.cpp | 47 napi_valuetype valuetype = napi_undefined; in ParseParameters() local 48 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valuetype)); in ParseParameters() 49 if (valuetype != napi_object) { in ParseParameters() 63 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 64 if (valuetype != napi_boolean) { in ParseParameters() 74 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters() 75 if (valuetype != napi_function) { in ParseParameters() 99 napi_valuetype valuetype = napi_undefined; in ParseParameters() local 100 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valuetype)); in ParseParameters() 101 if ((valuetype != napi_object) && (valuetype != napi_number) && (valuetype != napi_function)) { in ParseParameters() [all …]
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
D | napi_remove_group.cpp | 35 napi_valuetype valuetype = napi_undefined; in ParseParameters() local 44 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valuetype)); in ParseParameters() 45 if (valuetype != napi_object) { in ParseParameters() 59 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 60 if (valuetype != napi_string && valuetype != napi_number && valuetype != napi_boolean) { in ParseParameters() 66 if (valuetype == napi_string) { in ParseParameters() 71 } else if (valuetype == napi_number) { in ParseParameters() 82 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters() 83 if (valuetype != napi_function) { in ParseParameters()
|
D | napi_distributed_enable.cpp | 43 napi_valuetype valuetype = napi_undefined; in ParseParameters() local 44 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valuetype)); in ParseParameters() 45 if (valuetype != napi_object) { in ParseParameters() 59 NAPI_CALL(env, napi_typeof(env, argv[PARAM1], &valuetype)); in ParseParameters() 60 if (valuetype != napi_string) { in ParseParameters() 78 NAPI_CALL(env, napi_typeof(env, argv[PARAM2], &valuetype)); in ParseParameters() 79 if (valuetype != napi_boolean) { in ParseParameters() 187 napi_valuetype valuetype = napi_undefined; in ParseParameters() local 189 NAPI_CALL(env, napi_typeof(env, argv[PARAM0], &valuetype)); in ParseParameters() 190 if (valuetype != napi_string) { in ParseParameters() [all …]
|
/base/print/print_fwk/interfaces/kits/napi/print_napi/src/ |
D | napi_print_ext.cpp | 178 napi_valuetype valuetype; in UpdatePrinterState() local 179 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in UpdatePrinterState() 180 …PRINT_ASSERT_BASE(env, valuetype == napi_string, "printerId is not a string", napi_string_expected… in UpdatePrinterState() 182 PRINT_CALL_BASE(env, napi_typeof(env, argv[1], &valuetype), napi_invalid_arg); in UpdatePrinterState() 183 …PRINT_ASSERT_BASE(env, valuetype == napi_number, "printerStateis not a number", napi_number_expect… in UpdatePrinterState() 226 napi_valuetype valuetype; in UpdatePrintJobState() local 227 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in UpdatePrintJobState() 228 …PRINT_ASSERT_BASE(env, valuetype == napi_string, "printJobId is not a string", napi_string_expecte… in UpdatePrintJobState() 230 PRINT_CALL_BASE(env, napi_typeof(env, argv[1], &valuetype), napi_invalid_arg); in UpdatePrintJobState() 231 …PRINT_ASSERT_BASE(env, valuetype == napi_number, "printJobState is not a number", napi_number_expe… in UpdatePrintJobState() [all …]
|
D | napi_inner_print.cpp | 142 napi_valuetype valuetype; in ConnectPrinter() local 143 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in ConnectPrinter() 144 …PRINT_ASSERT_BASE(env, valuetype == napi_string, "printerId is not a string", napi_string_expected… in ConnectPrinter() 174 napi_valuetype valuetype; in DisconnectPrinter() local 175 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in DisconnectPrinter() 176 …PRINT_ASSERT_BASE(env, valuetype == napi_string, "printerId is not a string", napi_string_expected… in DisconnectPrinter() 240 napi_valuetype valuetype; in CancelPrintJob() local 241 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in CancelPrintJob() 242 … PRINT_ASSERT_BASE(env, valuetype == napi_string, "jobId is not a string", napi_string_expected); in CancelPrintJob() 312 napi_valuetype valuetype; in QueryCapability() local [all …]
|
D | print_task.cpp | 134 napi_valuetype valuetype; in On() local 135 PRINT_CALL(env, napi_typeof(env, argv[0], &valuetype)); in On() 136 PRINT_ASSERT(env, valuetype == napi_string, "type is not a string"); in On() 140 valuetype = napi_undefined; in On() 141 napi_typeof(env, argv[1], &valuetype); in On() 142 PRINT_ASSERT(env, valuetype == napi_function, "callback is not a function"); in On() 171 napi_valuetype valuetype; in Off() local 172 …PRINT_CALL_BASE(env, napi_typeof(env, argv[NapiPrintUtils::INDEX_ZERO], &valuetype), napi_invalid_… in Off() 173 … PRINT_ASSERT_BASE(env, valuetype == napi_string, "type is not a string", napi_string_expected); in Off()
|