| 306 | return JavaScriptLong(); |
| 307 | } |
| 308 | |
| 309 | return JavaScriptLong(static_cast<int32_t>(lowValue), static_cast<int32_t>(highValue), isUnsignedValue); |
| 310 | } |
| 311 | |
| 312 | JSValueRef IJavaScriptContext::evaluateNative(const std::string_view& /*sourceFilename*/, |
| 313 | JSExceptionTracker& exceptionTracker) { |
| 314 | exceptionTracker.onError("Native module evaluation is not supported in this JS context"); |
| 315 | return JSValueRef(); |
| 316 | } |
| 317 | |
| 318 | std::optional<IJavaScriptNativeModuleInfo> IJavaScriptContext::getNativeModuleInfo( |
| 319 | const std::string_view& /*sourceFilename*/) { |
| 320 | return std::nullopt; |
| 321 | } |
| 322 | |
| 323 | JSValueRef IJavaScriptContext::newPromise(const JSValueRef& executor, JSExceptionTracker& exceptionTracker) { |
| 324 | if (_promiseConstructor.empty()) { |
| 325 | auto globalObject = getGlobalObject(exceptionTracker); |
| 326 | if (!exceptionTracker) { |
| 327 | return globalObject; |
no test coverage detected