Commit 5398cb5
authored
src: make ModifyCodeGenerationFromStrings more robust
1. Fallback to true when the context is not (yet) initialized
with the kAllowCodeGenerationFromStrings field.
2. Fallback to true when the Environment isn't assigned to
the context or when the Environment cannot call into
JavaScript.
PR-URL: #50763
Refs: #50761
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>1 parent 4b0401f commit 5398cb5
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
608 | 608 | | |
609 | 609 | | |
610 | 610 | | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
611 | 618 | | |
612 | | - | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
613 | 623 | | |
614 | 624 | | |
615 | 625 | | |
| |||
0 commit comments