diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-07-16 14:20:09 +0200 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2018-08-27 14:07:40 -0700 |
commit | 30272924a907b4d557e45932bf3cc3d392d5e85b (patch) | |
tree | 83ac18d933f0c1d87f43ba5975a2c981eda34b98 /platform/node/src/node_map.hpp | |
parent | 1e454642c8bc99698d25105fe0034916e2930fe6 (diff) | |
download | qtlocation-mapboxgl-30272924a907b4d557e45932bf3cc3d392d5e85b.tar.gz |
[node] capture invalid input data as `ParseError` objects
This allows us to distinguish them from other types of errors
Diffstat (limited to 'platform/node/src/node_map.hpp')
-rw-r--r-- | platform/node/src/node_map.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/platform/node/src/node_map.hpp b/platform/node/src/node_map.hpp index 19df095481..52fc1ef659 100644 --- a/platform/node/src/node_map.hpp +++ b/platform/node/src/node_map.hpp @@ -37,6 +37,7 @@ public: ~NodeMap(); static Nan::Persistent<v8::Function> constructor; + static Nan::Persistent<v8::Object> parseError; static void Init(v8::Local<v8::Object>); @@ -67,6 +68,8 @@ public: static void DumpDebugLogs(const Nan::FunctionCallbackInfo<v8::Value>&); static void QueryRenderedFeatures(const Nan::FunctionCallbackInfo<v8::Value>&); + static v8::Local<v8::Value> ParseError(const char* msg); + void startRender(RenderOptions options); void renderFinished(); |