summaryrefslogtreecommitdiff
path: root/src/env-inl.h
diff options
context:
space:
mode:
authorGus Caplan <me@gus.host>2018-08-17 17:26:34 -0500
committerGus Caplan <me@gus.host>2018-10-06 17:33:25 -0500
commit4c37df779cf944b5666fc72e2a27fbf2e745881f (patch)
tree80d135f6cbd7cd9545bee950c280659985c276b8 /src/env-inl.h
parent124a8e21238f8452028614625fe491b3049f7244 (diff)
downloadandroid-node-v8-4c37df779cf944b5666fc72e2a27fbf2e745881f.tar.gz
android-node-v8-4c37df779cf944b5666fc72e2a27fbf2e745881f.tar.bz2
android-node-v8-4c37df779cf944b5666fc72e2a27fbf2e745881f.zip
vm: add dynamic import support
PR-URL: https://github.com/nodejs/node/pull/22381 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Diffstat (limited to 'src/env-inl.h')
-rw-r--r--src/env-inl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/env-inl.h b/src/env-inl.h
index e4a635c84d..6ace0bf825 100644
--- a/src/env-inl.h
+++ b/src/env-inl.h
@@ -446,6 +446,13 @@ Environment::trace_category_state() {
return trace_category_state_;
}
+inline uint32_t Environment::get_next_module_id() {
+ return module_id_counter_++;
+}
+inline uint32_t Environment::get_next_script_id() {
+ return script_id_counter_++;
+}
+
Environment::ShouldNotAbortOnUncaughtScope::ShouldNotAbortOnUncaughtScope(
Environment* env)
: env_(env) {