Skip to content

bootstrap: delay the instantiation of maps in per-context scripts

Rodrigo Muino Tomonari requested to merge github/fork/joyeecheung/delay-map into master

Instantiating maps renders the snapshot non-rehashable (v8 currently fails silently during CreateBlob()). Then the hash seed would always be the same and not recomputed if custom V8 snapshot is enabled. This patch delays the instantiation of the maps in domexception.js and make it lazy.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading