[v8] Fix uses of deprecated Object::Get in chrome os

Always use the Context variant of Get and check its return value. These
are cases where the code was already assuming that exceptions couldn't
be thrown as it would have crashed if empty v8::Local were returned.

Bug: v8:7283
Change-Id: I2f872e8daee3a1298bb77cbf61dc17e46592e28d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1578565
Reviewed-by: Devlin <rdevlin.cronin@chromium.org>
Commit-Queue: Dan Elphick <delphick@chromium.org>
Auto-Submit: Dan Elphick <delphick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#653949}
1 file changed