Index: test/inspector/inspector-test.cc |
diff --git a/test/inspector/inspector-test.cc b/test/inspector/inspector-test.cc |
index 7fe6b8046862073f717e227fea94278cc86b2ff9..b7165acc2a57293bd96ef644bfdd139f32e351a4 100644 |
--- a/test/inspector/inspector-test.cc |
+++ b/test/inspector/inspector-test.cc |
@@ -5,8 +5,6 @@ |
#if !defined(_WIN32) && !defined(_WIN64) |
#include <unistd.h> // NOLINT |
#endif // !defined(_WIN32) && !defined(_WIN64) |
- |
-#include <locale.h> |
#include "include/libplatform/libplatform.h" |
#include "include/v8.h" |
@@ -31,9 +29,7 @@ |
public: |
UtilsExtension() |
: v8::Extension("v8_inspector/utils", |
- "native function print();" |
- "native function quit();" |
- "native function setlocale();") {} |
+ "native function print(); native function quit();") {} |
virtual v8::Local<v8::FunctionTemplate> GetNativeFunctionTemplate( |
v8::Isolate* isolate, v8::Local<v8::String> name) { |
v8::Local<v8::Context> context = isolate->GetCurrentContext(); |
@@ -48,12 +44,6 @@ |
.ToLocalChecked()) |
.FromJust()) { |
return v8::FunctionTemplate::New(isolate, UtilsExtension::Quit); |
- } else if (name->Equals(context, |
- v8::String::NewFromUtf8(isolate, "setlocale", |
- v8::NewStringType::kNormal) |
- .ToLocalChecked()) |
- .FromJust()) { |
- return v8::FunctionTemplate::New(isolate, UtilsExtension::SetLocale); |
} |
return v8::Local<v8::FunctionTemplate>(); |
} |
@@ -93,15 +83,6 @@ |
} |
static void Quit(const v8::FunctionCallbackInfo<v8::Value>& args) { Exit(); } |
- |
- static void SetLocale(const v8::FunctionCallbackInfo<v8::Value>& args) { |
- if (args.Length() != 1 || !args[0]->IsString()) { |
- fprintf(stderr, "Internal error: setlocale get one string argument."); |
- Exit(); |
- } |
- v8::String::Utf8Value str(args[0]); |
- setlocale(LC_NUMERIC, *str); |
- } |
}; |
class SetTimeoutTask : public TaskRunner::Task { |