[cleanup] Fix uses of deprecated v8 GetPropertyNames
Replace deprecated GetPropertyNames() with GetPropertyNames(context).ToLocalChecked(). The previous version obtained the Context implicitly which could be wrong if the Context was not properly restored. Additionally the previous version does not force checking of the exception status which the new version does via the V8_WARN_UNUSED_RESULT macro. Bug: v8:7286, v8:8562 Change-Id: If144eb10b4ba0f045ac13af02d1054ffa7e492c1 Reviewed-on: https://chromium-review.googlesource.com/c/1388107 Commit-Queue: Dan Elphick <delphick@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#618817}
Showing
Please register or sign in to comment