diff --git a/src/node_v8_platform.h b/src/node_v8_platform.h index 6b828732e6af39..5bc9df9d9fa34a 100644 --- a/src/node_v8_platform.h +++ b/src/node_v8_platform.h @@ -53,9 +53,9 @@ class Platform : public v8::Platform { virtual ~Platform() override; void CallOnBackgroundThread(v8::Task* task, - ExpectedRuntime expected_runtime); - void CallOnForegroundThread(v8::Isolate* isolate, v8::Task* task); - double MonotonicallyIncreasingTime(); + ExpectedRuntime expected_runtime) override; + void CallOnForegroundThread(v8::Isolate* isolate, v8::Task* task) override; + double MonotonicallyIncreasingTime() override; protected: static void WorkerBody(void* arg); diff --git a/src/string_bytes.cc b/src/string_bytes.cc index fa7e820df9f687..1df6879a6a0346 100644 --- a/src/string_bytes.cc +++ b/src/string_bytes.cc @@ -32,11 +32,11 @@ class ExternString: public ResourceType { isolate()->AdjustAmountOfExternalAllocatedMemory(change_in_bytes); } - const TypeName* data() const { + const TypeName* data() const override { return data_; } - size_t length() const { + size_t length() const override { return length_; }