Skip to content

Commit 8805488

Browse files
author
Chris Klochek
committed
Fixes.
1 parent 7d41093 commit 8805488

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

third_party/blink/renderer/bindings/core/v8/record_replay_interface.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ extern "C" void V8RecordReplayFinishRecording();
9292
extern "C" void V8RecordReplaySetCrashReason(const char* reason);
9393
extern "C" char* V8RecordReplayReadAssetFileContents(const char* aPath, size_t* aLength);
9494

95+
static void RunScript(v8::Isolate* isolate, v8::Local<v8::Context> context, const char* source_raw, const char* filename);
96+
9597
static const char REPLAY_CDT_PAUSE_OBJECT_GROUP[] =
9698
"REPLAY_CDT_PAUSE_OBJECT_GROUP";
9799

@@ -825,7 +827,7 @@ const char* gOnNewWindowScript = R""""(
825827
window.__RECORD_REPLAY__ = window.top.__RECORD_REPLAY__;
826828
window.__RECORD_REPLAY_ARGUMENTS__ = window.top.__RECORD_REPLAY_ARGUMENTS__;
827829
828-
for (g of window.top.__RECORD_REPLAY_GLOBALS__) {
830+
for (const g of window.top.__RECORD_REPLAY_GLOBALS__) {
829831
window[g] = window.top[g];
830832
}
831833
})()
@@ -2547,7 +2549,7 @@ static void InitializeRecordReplayApiObjects(v8::Isolate* isolate, LocalFrame* l
25472549
DefineProperty(isolate, context->Global(), "__RECORD_REPLAY_ARGUMENTS__",
25482550
args);
25492551

2550-
v8::Local<v8::Object> globals = v8::Object::New(isolate);
2552+
v8::Local<v8::Object> globals = v8::Map::New(isolate);
25512553
DefineProperty(isolate, context->Global(), "__RECORD_REPLAY_GLOBALS__",
25522554
globals);
25532555

0 commit comments

Comments
 (0)