mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
LibJS: Replace GlobalObject with VM in Value AOs [Part 4/19]
This is where the fun begins. :^)
This commit is contained in:
parent
f6c4a0f5d0
commit
a022e548b8
129 changed files with 1230 additions and 1325 deletions
|
@ -142,9 +142,9 @@ JS_DEFINE_NATIVE_FUNCTION(TestRunnerGlobalObject::fuzzilli)
|
|||
if (!vm.argument_count())
|
||||
return JS::js_undefined();
|
||||
|
||||
auto operation = TRY(vm.argument(0).to_string(global_object));
|
||||
auto operation = TRY(vm.argument(0).to_string(vm));
|
||||
if (operation == "FUZZILLI_CRASH") {
|
||||
auto type = TRY(vm.argument(1).to_i32(global_object));
|
||||
auto type = TRY(vm.argument(1).to_i32(vm));
|
||||
switch (type) {
|
||||
case 0:
|
||||
*((int*)0x41414141) = 0x1337;
|
||||
|
@ -160,7 +160,7 @@ JS_DEFINE_NATIVE_FUNCTION(TestRunnerGlobalObject::fuzzilli)
|
|||
fzliout = stdout;
|
||||
}
|
||||
|
||||
auto string = TRY(vm.argument(1).to_string(global_object));
|
||||
auto string = TRY(vm.argument(1).to_string(vm));
|
||||
fprintf(fzliout, "%s\n", string.characters());
|
||||
fflush(fzliout);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue