Closed sisshiki1969 closed 5 years ago
This PR is a proposal for refactoring.
Factory
Value
before
let ary = Value::builtin_function( memory_allocator, object_prototypes, "Array".to_string(), array_constructor, );
after
let ary = factory.builtin_function("Array", array_constructor);
thank you.
Amazing.
This PR is a proposal for refactoring.
Factory
, which holds memory allocator and object prototypes, is introduced.Value
s are moved toValue
toFactory
.before
after
thank you.