mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 23:58:11 +00:00
LibJS/Bytecode: Add support for direct eval()
This is implemented as a special mode of the Call opcode that invokes the PerformEval AO (instead of the Call or Construct AO).
This commit is contained in:
parent
8a3e350321
commit
2ac8a4bbb7
3 changed files with 25 additions and 4 deletions
|
@ -714,6 +714,7 @@ public:
|
|||
enum class CallType {
|
||||
Call,
|
||||
Construct,
|
||||
DirectEval,
|
||||
};
|
||||
|
||||
Call(CallType type, Register callee, Register this_value, Optional<StringTableIndex> expression_string = {})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue