archives

« Bugzilla Issues Index

#3116 — Loader Object and Loader Record should be unified


Currently Loader Records and Loader Objects are one-to-one.

15.2.3.1 "Loader Records and Loader Objects" should just be "Loader Objects" and the fields of the Loader Record should be internal slots of the Loader Object.

15.2.3.1.1 "CreateLoaderRecord" should be inlined into its sole call site in 26.3.1.1.


(In reply to Jason Orendorff from comment #0)
> Currently Loader Records and Loader Objects are one-to-one.
>
> 15.2.3.1 "Loader Records and Loader Objects" should just be "Loader Objects"
> and the fields of the Loader Record should be internal slots of the Loader
> Object.
>
> 15.2.3.1.1 "CreateLoaderRecord" should be inlined into its sole call site in
> 26.3.1.1.

I've found it conceptually clearer and notationally simpler to handle complex internal state in this manner. It decouples the internal semantics from its ES reflection in terms of objects and reduces possibility of object semantics unintentionally leaking into the internal semantics.

It's really just architectural layering.


concerns old module spec.