Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2018-12-20 01:11:35 +0300
committerAnna Henningsen <anna@addaleax.net>2018-12-31 03:10:36 +0300
commit0043c6f5482993f7d91d6a78edeb310147895fb5 (patch)
treee08a22ae1593c16275f13103e67f7e07b227b464 /src/node_url.h
parenta84e0ec0dd20d0585d5c626f7ba333eb38d2221a (diff)
src: pass along MaybeLocal<> state from `URL::ToObject()`
PR-URL: https://github.com/nodejs/node/pull/25141 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'src/node_url.h')
-rw-r--r--src/node_url.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/node_url.h b/src/node_url.h
index 055393d22e0..47b859b879b 100644
--- a/src/node_url.h
+++ b/src/node_url.h
@@ -11,10 +11,6 @@
namespace node {
namespace url {
-using v8::Local;
-using v8::Value;
-
-
#define PARSESTATES(XX) \
XX(kSchemeStart) \
XX(kScheme) \
@@ -171,7 +167,7 @@ class URL {
// Get the file URL from native file system path.
static URL FromFilePath(const std::string& file_path);
- const Local<Value> ToObject(Environment* env) const;
+ v8::MaybeLocal<v8::Value> ToObject(Environment* env) const;
URL(const URL&) = default;
URL& operator=(const URL&) = default;