diff --git a/boa_engine/src/builtins/generator/mod.rs b/boa_engine/src/builtins/generator/mod.rs index d877caea7f..f2e4c9cf7b 100644 --- a/boa_engine/src/builtins/generator/mod.rs +++ b/boa_engine/src/builtins/generator/mod.rs @@ -172,7 +172,7 @@ impl IntrinsicObject for Generator { } impl Generator { - const NAME: &str = "Generator"; + const NAME: &'static str = "Generator"; /// `Generator.prototype.next ( value )` ///