Removed dedicated napi error handler
This commit is contained in:
		
							parent
							
								
									32a470aec3
								
							
						
					
					
						commit
						248ea8a71b
					
				
					 35 changed files with 0 additions and 70 deletions
				
			
		| 
						 | 
					@ -49,8 +49,6 @@ Napi::Value Blur(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -50,8 +50,6 @@ Napi::Value Blurple(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,8 +68,6 @@ Napi::Value Caption(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -66,8 +66,6 @@ Napi::Value CaptionTwo(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -47,8 +47,6 @@ Napi::Value Circle(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -55,8 +55,6 @@ Napi::Value Crop(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -48,8 +48,6 @@ Napi::Value Explode(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -56,8 +56,6 @@ Napi::Value Flag(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -49,8 +49,6 @@ Napi::Value Flip(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -92,8 +92,6 @@ Napi::Value Freeze(const Napi::CallbackInfo &info) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -52,8 +52,6 @@ Napi::Value Gamexplain(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -69,8 +69,6 @@ Napi::Value Globe(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", "gif");
 | 
					    result.Set("type", "gif");
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -31,8 +31,6 @@ Napi::Value Homebrew(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", "png");
 | 
					    result.Set("type", "png");
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -49,8 +49,6 @@ Napi::Value Invert(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -26,8 +26,6 @@ Napi::Value Jpeg(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", "jpg");
 | 
					    result.Set("type", "jpg");
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -53,8 +53,6 @@ Napi::Value Leak(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -49,8 +49,6 @@ Napi::Value Magik(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -89,8 +89,6 @@ Napi::Value Meme(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -84,8 +84,6 @@ Napi::Value Mirror(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -89,8 +89,6 @@ Napi::Value Motivate(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -68,8 +68,6 @@ Napi::Value Reddit(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -60,8 +60,6 @@ Napi::Value Resize(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -82,8 +82,6 @@ Napi::Value Retro(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", "png");
 | 
					    result.Set("type", "png");
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -49,8 +49,6 @@ Napi::Value Reverse(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", "gif");
 | 
					    result.Set("type", "gif");
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -58,8 +58,6 @@ Napi::Value Scott(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -34,8 +34,6 @@ Napi::Value Sonic(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", "png");
 | 
					    result.Set("type", "png");
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -158,8 +158,6 @@ Napi::Value Speed(const Napi::CallbackInfo &info) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -65,8 +65,6 @@ Napi::Value Spin(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", "gif");
 | 
					    result.Set("type", "gif");
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -47,8 +47,6 @@ Napi::Value Swirl(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -61,8 +61,6 @@ Napi::Value Tile(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -59,8 +59,6 @@ Napi::Value Trump(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -91,8 +91,6 @@ Napi::Value Uncaption(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -55,8 +55,6 @@ Napi::Value Wall(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -83,8 +83,6 @@ Napi::Value Watermark(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -52,8 +52,6 @@ Napi::Value Wdt(const Napi::CallbackInfo &info) {
 | 
				
			||||||
                                                blob.length()));
 | 
					                                                blob.length()));
 | 
				
			||||||
    result.Set("type", type);
 | 
					    result.Set("type", type);
 | 
				
			||||||
    return result;
 | 
					    return result;
 | 
				
			||||||
  } catch (Napi::Error const &err) {
 | 
					 | 
				
			||||||
    throw err;
 | 
					 | 
				
			||||||
  } catch (std::exception const &err) {
 | 
					  } catch (std::exception const &err) {
 | 
				
			||||||
    throw Napi::Error::New(env, err.what());
 | 
					    throw Napi::Error::New(env, err.what());
 | 
				
			||||||
  } catch (...) {
 | 
					  } catch (...) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue