Skip to content

src: bundle persistent-to-local methods as class

Create a class PersistentToLocal which contains three methods, Strong, Weak, and Default:

  • Strong returns a Local from a strong persistent reference,
  • Weak returns a Local from a weak persistent reference, and
  • Default decides based on IsWeak() which of the above two to call.

These replace node::StrongPersistentToLocal(), node::WeakPersistentToLocal(), and node::PersistentToLocal(), respectively.

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

Merge request reports

Loading