diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2019-03-08 13:56:56 +1100 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-07 21:56:56 -0500 |
commit | 24d6bf6aeb2b9ac929808e2b8ae4cd5e844a9f8b (patch) | |
tree | 45047054bad41f3e27ae51759d5055879af0b243 /libdeno/binding.cc | |
parent | cd1992aeaab92c4446ac289bced3ec548050467d (diff) |
Remove 'deno' builtin module (#1895)
Diffstat (limited to 'libdeno/binding.cc')
-rw-r--r-- | libdeno/binding.cc | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/libdeno/binding.cc b/libdeno/binding.cc index 7346956fd..c291852da 100644 --- a/libdeno/binding.cc +++ b/libdeno/binding.cc @@ -289,14 +289,6 @@ void Send(const v8::FunctionCallbackInfo<v8::Value>& args) { } } -v8::Local<v8::Object> DenoIsolate::GetBuiltinModules() { - v8::EscapableHandleScope handle_scope(isolate_); - if (builtin_modules_.IsEmpty()) { - builtin_modules_.Reset(isolate_, v8::Object::New(isolate_)); - } - return handle_scope.Escape(builtin_modules_.Get(isolate_)); -} - v8::ScriptOrigin ModuleOrigin(v8::Isolate* isolate, v8::Local<v8::Value> resource_name) { return v8::ScriptOrigin(resource_name, v8::Local<v8::Integer>(), @@ -350,15 +342,6 @@ deno_mod DenoIsolate::RegisterModule(bool main, const char* name, return id; } -void BuiltinModules(v8::Local<v8::Name> property, - const v8::PropertyCallbackInfo<v8::Value>& info) { - v8::Isolate* isolate = info.GetIsolate(); - DenoIsolate* d = DenoIsolate::FromIsolate(isolate); - DCHECK_EQ(d->isolate_, isolate); - v8::Locker locker(d->isolate_); - info.GetReturnValue().Set(d->GetBuiltinModules()); -} - void Shared(v8::Local<v8::Name> property, const v8::PropertyCallbackInfo<v8::Value>& info) { v8::Isolate* isolate = info.GetIsolate(); @@ -530,11 +513,6 @@ void InitializeContext(v8::Isolate* isolate, v8::Local<v8::Context> context) { CHECK(deno_val->SetAccessor(context, deno::v8_str("shared"), Shared) .FromJust()); - - CHECK( - deno_val - ->SetAccessor(context, deno::v8_str("builtinModules"), BuiltinModules) - .FromJust()); } void MessageCallback(v8::Local<v8::Message> message, |