diff options
author | ZYSzys <17367077526@163.com> | 2018-12-13 10:33:23 +0800 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2019-02-28 23:37:30 +1100 |
commit | f9fc1ea0ab200e2d61fd343b7fce6e208d8367a0 (patch) | |
tree | e887ebad49f33be54df2dbbbb359f0cd8e9824bb /src/util.cc | |
parent | 21f91d8874aa2510c87652ffb3d1f18649081319 (diff) | |
download | node-new-f9fc1ea0ab200e2d61fd343b7fce6e208d8367a0.tar.gz |
src: use v8:: for consistency in util
Backport-PR-URL: https://github.com/nodejs/node/pull/25005
PR-URL: #23934
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Diffstat (limited to 'src/util.cc')
-rw-r--r-- | src/util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.cc b/src/util.cc index a0f0b0bf89..9f0b8ebc9d 100644 --- a/src/util.cc +++ b/src/util.cc @@ -102,7 +102,7 @@ BufferValue::BufferValue(Isolate* isolate, Local<Value> value) { void LowMemoryNotification() { if (v8_initialized) { - auto isolate = v8::Isolate::GetCurrent(); + auto isolate = Isolate::GetCurrent(); if (isolate != nullptr) { isolate->LowMemoryNotification(); } @@ -134,7 +134,7 @@ std::set<std::string> ParseCommaSeparatedSet(const std::string& in) { return out; } -void ThrowErrStringTooLong(v8::Isolate* isolate) { +void ThrowErrStringTooLong(Isolate* isolate) { isolate->ThrowException(ERR_STRING_TOO_LONG(isolate)); } |