We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0055c99 commit a29bc7aCopy full SHA for a29bc7a
NativeScript/runtime/modules/timers/Timers.mm
@@ -1,5 +1,6 @@
1
#include "js_native_api.h"
2
#include "js_native_api_types.h"
3
+#include "jsr.h"
4
#ifdef __APPLE__
5
6
#import <Foundation/Foundation.h>
@@ -36,6 +37,7 @@
36
37
timerWithTimeInterval:interval
38
repeats:NO
39
block:^(NSTimer* timer) {
40
+ NapiScope scope(env);
41
napi_value global, callbackValue;
42
napi_get_global(env, &global);
43
napi_get_reference_value(env, callback, &callbackValue);
@@ -71,6 +73,7 @@
71
73
72
74
repeats:YES
75
76
77
78
79
0 commit comments