Commit 52a5c4b9 authored by Eric Roman's avatar Eric Roman Committed by Commit Bot

Use the ToV8() overload that takes ScriptState for CryptoKey.

Bug: 740871
Change-Id: Ica5bcd76a3f2995a8f414c80698e468f8780734c
Reviewed-on: https://chromium-review.googlesource.com/568595Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Eric Roman <eroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#486200}
parent 840315c1
...@@ -162,9 +162,7 @@ ScriptValue CryptoKey::usages(ScriptState* script_state) { ...@@ -162,9 +162,7 @@ ScriptValue CryptoKey::usages(ScriptState* script_state) {
result.push_back(KeyUsageToString(usage)); result.push_back(KeyUsageToString(usage));
} }
return ScriptValue(script_state, return ScriptValue(script_state, ToV8(result, script_state));
ToV8(result, script_state->GetContext()->Global(),
script_state->GetIsolate()));
} }
bool CryptoKey::CanBeUsedForAlgorithm(const WebCryptoAlgorithm& algorithm, bool CryptoKey::CanBeUsedForAlgorithm(const WebCryptoAlgorithm& algorithm,
......
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