Commit 0bd2b06c authored by Devlin Cronin's avatar Devlin Cronin Committed by Commit Bot

[Extensions Cleanup] Remove unused v8_helpers method

One of the variants of GetPropertyUnsafe() was unused. Remove it.

Bug: None
Change-Id: I518789c94f00cbd6225159cfcfd6004b94151b64
Reviewed-on: https://chromium-review.googlesource.com/896387Reviewed-by: default avatarKaran Bhatia <karandeepb@chromium.org>
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#533524}
parent a3aa3399
......@@ -125,14 +125,8 @@ inline bool GetPrivateProperty(v8::Local<v8::Context> context,
GetPrivateProperty(context, object, v8_key, out);
}
// GetPropertyUnsafe() family wraps v8::Object::Get(). They crash when an
// exception is thrown.
inline v8::Local<v8::Value> GetPropertyUnsafe(v8::Local<v8::Context> context,
v8::Local<v8::Object> object,
v8::Local<v8::Value> key) {
return object->Get(context, key).ToLocalChecked();
}
// GetPropertyUnsafe() wraps v8::Object::Get(), and crashes when an exception
// is thrown.
inline v8::Local<v8::Value> GetPropertyUnsafe(
v8::Local<v8::Context> context,
v8::Local<v8::Object> object,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment