mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +00:00
FuzzilliJs: Print the result of JS::Value::to_string using AK::outln
JS::Value::to_string now returns a String, which does not have a null- terminated characters() accessor.
This commit is contained in:
parent
8ca528217c
commit
5a1ac851aa
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <AK/DeprecatedString.h>
|
#include <AK/DeprecatedString.h>
|
||||||
|
#include <AK/Format.h>
|
||||||
#include <AK/Function.h>
|
#include <AK/Function.h>
|
||||||
#include <AK/StringView.h>
|
#include <AK/StringView.h>
|
||||||
#include <LibJS/Forward.h>
|
#include <LibJS/Forward.h>
|
||||||
|
@ -160,7 +161,7 @@ JS_DEFINE_NATIVE_FUNCTION(TestRunnerGlobalObject::fuzzilli)
|
||||||
}
|
}
|
||||||
|
|
||||||
auto string = TRY(vm.argument(1).to_string(vm));
|
auto string = TRY(vm.argument(1).to_string(vm));
|
||||||
fprintf(fzliout, "%s\n", string.characters());
|
outln(fzliout, "{}", string);
|
||||||
fflush(fzliout);
|
fflush(fzliout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue