From b3afd4fc6fc551ea90b8d49f15e7dd3bff0e1aee Mon Sep 17 00:00:00 2001 From: raskad <32105367+raskad@users.noreply.github.com> Date: Wed, 27 Jul 2022 18:01:39 +0200 Subject: [PATCH] Derive for FunctionCompiler --- boa_engine/src/bytecompiler.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/boa_engine/src/bytecompiler.rs b/boa_engine/src/bytecompiler.rs index 38a5ee2148b..d94bc3100f1 100644 --- a/boa_engine/src/bytecompiler.rs +++ b/boa_engine/src/bytecompiler.rs @@ -3051,7 +3051,8 @@ pub(crate) enum FunctionKind { Arrow, } -// `FunctionCompiler` is used to compile AST functions to bytecode. +/// `FunctionCompiler` is used to compile AST functions to bytecode. +#[derive(Debug, Clone, Copy)] pub(crate) struct FunctionCompiler { name: Sym, generator: bool,