MCPcopy Create free account
hub / github.com/Snapchat/Valdi / onUncaughtJsError

Method onUncaughtJsError

valdi/src/valdi/runtime/Runtime.cpp:800–808  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

798 }
799}
800
801Value Runtime::getColorPalette() {
802 auto valueMap = Valdi::makeShared<Valdi::ValueMap>();
803 for (const auto& [name, color] : _colorPalette->getColors()) {
804 (*valueMap)[name] = Valdi::Value(color.value);
805 }
806
807 return Valdi::Value(std::move(valueMap));
808}
809
810void Runtime::onUncaughtJsError(const StringBox& moduleName, const Error& error) {
811 if (_runtimeMessageHandler != nullptr) {

Callers 1

Calls 4

getErrorCodeMethod · 0.80
slowToStringMethod · 0.80
getMessageMethod · 0.65
flattenMethod · 0.45

Tested by

no test coverage detected