| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -957,22 +957,6 @@ inline void Environment::SetTemplateMethod(v8::Local<v8::FunctionTemplate> that, | |||
| 957 | 957 | t->SetClassName(name_string); // NODE_SET_METHOD() compatibility. | |
| 958 | 958 | } | |
| 959 | 959 | ||
| 960 | - inline void Environment::SetTemplateMethodNoSideEffect( | ||
| 961 | - v8::Local<v8::FunctionTemplate> that, | ||
| 962 | - const char* name, | ||
| 963 | - v8::FunctionCallback callback) { | ||
| 964 | - v8::Local<v8::FunctionTemplate> t = | ||
| 965 | - NewFunctionTemplate(callback, v8::Local<v8::Signature>(), | ||
| 966 | - v8::ConstructorBehavior::kAllow, | ||
| 967 | - v8::SideEffectType::kHasNoSideEffect); | ||
| 968 | - // kInternalized strings are created in the old space. | ||
| 969 | - const v8::NewStringType type = v8::NewStringType::kInternalized; | ||
| 970 | - v8::Local<v8::String> name_string = | ||
| 971 | - v8::String::NewFromUtf8(isolate(), name, type).ToLocalChecked(); | ||
| 972 | - that->Set(name_string, t); | ||
| 973 | - t->SetClassName(name_string); // NODE_SET_METHOD() compatibility. | ||
| 974 | - } | ||
| 975 | - | ||
| 976 | 960 | void Environment::AddCleanupHook(void (*fn)(void*), void* arg) { | |
| 977 | 961 | auto insertion_info = cleanup_hooks_.emplace(CleanupHookCallback { | |
| 978 | 962 | fn, arg, cleanup_hook_counter_++ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -889,10 +889,6 @@ class Environment { | |||
| 889 | 889 | inline void SetProtoMethodNoSideEffect(v8::Local<v8::FunctionTemplate> that, | |
| 890 | 890 | const char* name, | |
| 891 | 891 | v8::FunctionCallback callback); | |
| 892 | - inline void SetTemplateMethodNoSideEffect( | ||
| 893 | - v8::Local<v8::FunctionTemplate> that, | ||
| 894 | - const char* name, | ||
| 895 | - v8::FunctionCallback callback); | ||
| 896 | 892 | ||
| 897 | 893 | void BeforeExit(void (*cb)(void* arg), void* arg); | |
| 898 | 894 | void RunBeforeExitCallbacks(); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments