Skip to content

vm: use SetterCallback to set func declarations

Currently, when in strict mode, function declarations are copied on the sandbox by CopyProperties(), which is not necessary because GlobalPropertySetterCallback now also intercepts function declarations.

Current version will break when CopyProperties() is removed. This change maintains the behavior, letting GlobalPropertySetterCallback do the task.

This is a preparation step for the removal of CopyProperties().

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

vm

Merge request reports

Loading