mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 04:52:06 +02:00
LibJS: Use correct MarkedValueList append method
This commit is contained in:
committed by
Andreas Kling
parent
02debd8a6d
commit
21064a1883
Notes:
sideshowbarker
2024-07-19 05:13:26 +09:00
Author: https://github.com/mattco98 Commit: https://github.com/SerenityOS/serenity/commit/21064a1883d Pull-request: https://github.com/SerenityOS/serenity/pull/2681 Reviewed-by: https://github.com/linusg
@@ -151,8 +151,8 @@ String JSONObject::serialize_json_property(Interpreter& interpreter, StringifySt
|
||||
|
||||
if (state.replacer_function) {
|
||||
MarkedValueList arguments(interpreter.heap());
|
||||
arguments.values().append(js_string(interpreter, key.to_string()));
|
||||
arguments.values().append(value);
|
||||
arguments.append(js_string(interpreter, key.to_string()));
|
||||
arguments.append(value);
|
||||
value = interpreter.call(*state.replacer_function, holder, move(arguments));
|
||||
if (interpreter.exception())
|
||||
return {};
|
||||
@@ -482,8 +482,8 @@ Value JSONObject::internalize_json_property(Interpreter& interpreter, Object* ho
|
||||
}
|
||||
}
|
||||
MarkedValueList arguments(interpreter.heap());
|
||||
arguments.values().append(js_string(interpreter, name.to_string()));
|
||||
arguments.values().append(value);
|
||||
arguments.append(js_string(interpreter, name.to_string()));
|
||||
arguments.append(value);
|
||||
return interpreter.call(reviver, Value(holder), move(arguments));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user