diff options
author | Gus Caplan <me@gus.host> | 2020-05-28 08:10:22 +0300 |
---|---|---|
committer | Gus Caplan <me@gus.host> | 2020-06-06 19:55:45 +0300 |
commit | d8eef83757c263672832687ac7667927a7d0c059 (patch) | |
tree | 8c4a9697dc1bbfa041ae211f961a87ebcffa7b5a /src/api | |
parent | e983b1cece7d24f7b4776798916276d30b9e419a (diff) |
process: use v8 fast api calls for hrtime
Refs: https://github.com/nodejs/node/issues/33374
PR-URL: https://github.com/nodejs/node/pull/33600
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/environment.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/environment.cc b/src/api/environment.cc index 5349657d4c5..99b6d855610 100644 --- a/src/api/environment.cc +++ b/src/api/environment.cc @@ -209,6 +209,8 @@ void SetIsolateCreateParamsForNode(Isolate::CreateParams* params) { // heap based on the actual physical memory. params->constraints.ConfigureDefaults(total_memory, 0); } + params->embedder_wrapper_object_index = BaseObject::InternalFields::kSlot; + params->embedder_wrapper_type_index = std::numeric_limits<int>::max(); } void SetIsolateErrorHandlers(v8::Isolate* isolate, const IsolateSettings& s) { |