Commit c97feb94 authored by Shu-yu Guo's avatar Shu-yu Guo Committed by Commit Bot

[top-level-await] Make Module::IsGraphAsync const

Bug: v8:9344
Change-Id: Id91afc60989afd45c4c0d00696afb4c81489f0ee
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2458146
Auto-Submit: Shu-yu Guo <syg@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70398}
parent ee3df92b
......@@ -371,7 +371,7 @@ Maybe<PropertyAttributes> JSModuleNamespace::GetPropertyAttributes(
return Just(it->property_attributes());
}
bool Module::IsGraphAsync(Isolate* isolate) {
bool Module::IsGraphAsync(Isolate* isolate) const {
DisallowGarbageCollection no_gc;
// Only SourceTextModules may be async.
......
......@@ -65,7 +65,7 @@ class Module : public HeapObject {
// Returns if this module or any transitively requested module is [[Async]],
// i.e. has a top-level await.
V8_WARN_UNUSED_RESULT bool IsGraphAsync(Isolate* isolate);
V8_WARN_UNUSED_RESULT bool IsGraphAsync(Isolate* isolate) const;
// Implementation of spec operation ModuleDeclarationInstantiation.
// Returns false if an exception occurred during instantiation, true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment