| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -942,21 +942,6 @@ inline void Environment::SetProtoMethodNoSideEffect( | |||
| 942 | 942 | t->SetClassName(name_string); // NODE_SET_PROTOTYPE_METHOD() compatibility. | |
| 943 | 943 | } | |
| 944 | 944 | ||
| 945 | - inline void Environment::SetTemplateMethod(v8::Local<v8::FunctionTemplate> that, | ||
| 946 | - const char* name, | ||
| 947 | - v8::FunctionCallback callback) { | ||
| 948 | - v8::Local<v8::FunctionTemplate> t = | ||
| 949 | - NewFunctionTemplate(callback, v8::Local<v8::Signature>(), | ||
| 950 | - v8::ConstructorBehavior::kAllow, | ||
| 951 | - v8::SideEffectType::kHasSideEffect); | ||
| 952 | - // kInternalized strings are created in the old space. | ||
| 953 | - const v8::NewStringType type = v8::NewStringType::kInternalized; | ||
| 954 | - v8::Local<v8::String> name_string = | ||
| 955 | - v8::String::NewFromUtf8(isolate(), name, type).ToLocalChecked(); | ||
| 956 | - that->Set(name_string, t); | ||
| 957 | - t->SetClassName(name_string); // NODE_SET_METHOD() compatibility. | ||
| 958 | - } | ||
| 959 | - | ||
| 960 | 945 | void Environment::AddCleanupHook(void (*fn)(void*), void* arg) { | |
| 961 | 946 | auto insertion_info = cleanup_hooks_.emplace(CleanupHookCallback { | |
| 962 | 947 | fn, arg, cleanup_hook_counter_++ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -878,9 +878,6 @@ class Environment { | |||
| 878 | 878 | inline void SetProtoMethod(v8::Local<v8::FunctionTemplate> that, | |
| 879 | 879 | const char* name, | |
| 880 | 880 | v8::FunctionCallback callback); | |
| 881 | - inline void SetTemplateMethod(v8::Local<v8::FunctionTemplate> that, | ||
| 882 | - const char* name, | ||
| 883 | - v8::FunctionCallback callback); | ||
| 884 | 881 | ||
| 885 | 882 | // Safe variants denote the function has no side effects. | |
| 886 | 883 | inline void SetMethodNoSideEffect(v8::Local<v8::Object> that, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments