From 4ef7ab3fd6a16b5ad0c03366d6a376cff0587ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 9 Feb 2021 23:03:25 +0100 Subject: [PATCH] docs: add info about settings --harmony-import-assertions flag (#606) --- src/module.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/module.rs b/src/module.rs index c8ff1d7a..8440d45b 100644 --- a/src/module.rs +++ b/src/module.rs @@ -284,6 +284,8 @@ impl Module { /// Returns an empty Maybe if an exception occurred during /// instantiation. (In the case where the callback throws an exception, that /// exception is propagated.) + /// + /// NOTE: requires to set `--harmony-import-assertions` V8 flag. #[must_use] pub fn instantiate_module<'a>( &self,