| 667 | if (!exceptionTracker) { |
| 668 | return nullptr; |
| 669 | } |
| 670 | |
| 671 | if (callableValueFunction != nullptr) { |
| 672 | // Unwrap the converted function if it is one |
| 673 | return callableValueFunction->getFunction(jsContext, exceptionTracker, false); |
| 674 | } |
| 675 | |
| 676 | // Otherwise we create a bridged function |
| 677 | auto valueFunction = factory(jsContext, jsValue, referenceInfoBuilder.asFunction().build(), exceptionTracker); |
| 678 | if (valueFunction != nullptr) { |