diff options
author | Michaël Zasso <targos@protonmail.com> | 2018-08-30 09:46:06 +0300 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2018-08-31 09:37:22 +0300 |
commit | 98b5d66629d55a3e0a1a3c4680dbbeba5922bcf2 (patch) | |
tree | 8076cd68d83dc3e90fb8ccf64a5a19195f2368a4 /src/node_contextify.cc | |
parent | 8e189794dfd4a83378af50358c68f97eb65cf1b2 (diff) |
src: do not pass code to ScriptCompiler::CreateCodeCacheForFunction
This is unnecessary, deprecated, and removed in V8 7.0.
PR-URL: https://github.com/nodejs/node/pull/22596
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'src/node_contextify.cc')
-rw-r--r-- | src/node_contextify.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_contextify.cc b/src/node_contextify.cc index 070c6bab604..92e2ed9429d 100644 --- a/src/node_contextify.cc +++ b/src/node_contextify.cc @@ -1103,8 +1103,8 @@ void ContextifyContext::CompileFunction( } if (produce_cached_data) { - const std::unique_ptr<ScriptCompiler::CachedData> - cached_data(ScriptCompiler::CreateCodeCacheForFunction(fun, code)); + const std::unique_ptr<ScriptCompiler::CachedData> cached_data( + ScriptCompiler::CreateCodeCacheForFunction(fun)); bool cached_data_produced = cached_data != nullptr; if (cached_data_produced) { MaybeLocal<Object> buf = Buffer::Copy( |