• Yutaka Hirano's avatar
    Inherit ScriptOriginOptions in eval() · 137f0c56
    Yutaka Hirano authored
    In general, whether an error thrown from a script will be muted is
    passed as (part of) ScriptOriginOptions when the script is compiled.
    Currently, when eval is called, that information is not given, and it
    uses the default options (IsSharedCrossOrigin = false,
    IsOpaque = false). Give it the options for the script in which eval
    is called.
    
    Bug: chromium:875153
    Cq-Include-Trybots: luci.v8.try:v8_linux_noi18n_rel_ng;luci.chromium.try:linux_chromium_rel_ng
    Change-Id: I4b5b872b4a8c2b8e503d457f199d85892a4c817c
    Reviewed-on: https://chromium-review.googlesource.com/1188052Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Commit-Queue: Yutaka Hirano <yhirano@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#55596}
    137f0c56
compiler.cc 76.1 KB