Skip to content

url: throw invalid this on detached accessors

Previously, using Reflect.get/set or calling a member method like toString() detached from the instance would result in an obscure internal error. This adds a proper brand check and throws ERR_INVALID_THIS when appropriate.

Unfortunately semver-major due to the additional throw

Signed-off-by: James M Snell jasnell@gmail.com

Merge request reports

Loading