• Devlin Cronin's avatar
    [Extensions] Remove v8_helpers::CallFunction · bcf34be9
    Devlin Cronin authored
    v8_helpers::CallFunction wraps v8::Function::Call. However, we should be
    avoiding using v8::Function::Call whenever possible, since it doesn't
    account for all possible state in the renderer (e.g., script suspension,
    etc).
    
    Remove v8_helpers::CallFunction and inline the v8::Function::Call at the
    two places it was used, along with a TODO to update them.
    
    Bug: None
    
    Change-Id: If3358bfda74126c3898cea2483fc6a012bdd6f24
    Reviewed-on: https://chromium-review.googlesource.com/823010Reviewed-by: default avatarIstiaque Ahmed <lazyboy@chromium.org>
    Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#523557}
    bcf34be9
v8_helpers.h 5.53 KB