Lines Matching refs:JSNApi
31 using PatchErrorCode = panda::JSNApi::PatchErrorCode;
66 JSNApi::EnableUserUncaughtErrorHandler(instance);
68 JSNApi::SetBundle(instance, false);
70 bool result = JSNApi::Execute(instance, baseFileName, "index");
73 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName);
76 Local<ObjectRef> exception = JSNApi::GetAndClearUncaughtException(instance);
77 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName);
80 res = JSNApi::UnloadPatch(instance, patchFileName);
89 JSNApi::EnableUserUncaughtErrorHandler(instance);
91 JSNApi::SetBundle(instance, false);
93 bool result = JSNApi::Execute(instance, baseFileName, "index");
96 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName);
99 Local<ObjectRef> exception = JSNApi::GetAndClearUncaughtException(instance);
100 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName);
103 result = JSNApi::Execute(instance, baseFileName, "index");
106 res = JSNApi::UnloadPatch(instance, patchFileName);
109 res = JSNApi::LoadPatch(instance, patchFileName, baseFileName);
112 exception = JSNApi::GetAndClearUncaughtException(instance);
113 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName);
116 res = JSNApi::UnloadPatch(instance, patchFileName);
125 JSNApi::EnableUserUncaughtErrorHandler(instance);
127 JSNApi::SetBundle(instance, false);
129 bool result = JSNApi::Execute(instance, baseFileName, "main");
132 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName);
135 Local<ObjectRef> exception = JSNApi::GetAndClearUncaughtException(instance);
136 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName);
139 res = JSNApi::UnloadPatch(instance, patchFileName);
148 JSNApi::EnableUserUncaughtErrorHandler(instance);
150 JSNApi::SetBundle(instance, false);
152 bool result = JSNApi::Execute(instance, baseFileName, "main");
155 auto res = JSNApi::LoadPatch(instance, patchFileName, baseFileName);
158 Local<ObjectRef> exception = JSNApi::GetAndClearUncaughtException(instance);
159 result = JSNApi::IsQuickFixCausedException(instance, exception, patchFileName);
162 result = JSNApi::Execute(instance, baseFileName, "main");
165 res = JSNApi::UnloadPatch(instance, patchFileName);
168 res = JSNApi::LoadPatch(instance, patchFileName, baseFileName);
171 res = JSNApi::UnloadPatch(instance, patchFileName);
183 JSNApi::SetBundle(instance, false);
185 bool result = JSNApi::Execute(instance, baseFileName1, "index");
188 result = JSNApi::Execute(instance, baseFileName2, "main");
191 auto res = JSNApi::LoadPatch(instance, patchFileName1, baseFileName1);
194 res = JSNApi::LoadPatch(instance, patchFileName2, baseFileName2);
197 res = JSNApi::UnloadPatch(instance, patchFileName1);
200 res = JSNApi::UnloadPatch(instance, patchFileName2);
225 auto result = JSNApi::LoadPatch(instance, patchFileName, (uint8_t *)patchData, sizeof(patchData),
293 JSNApi::RegisterQuickFixQueryFunc(instance, QuickFixQueryFunc);