Index: runtime/vm/report_test.cc |
diff --git a/runtime/vm/report_test.cc b/runtime/vm/report_test.cc |
index 73f21084663dadca2d40078e5eb58da653abd6c5..6338f5b30f4cb132728580d31a77976f446a96c1 100644 |
--- a/runtime/vm/report_test.cc |
+++ b/runtime/vm/report_test.cc |
@@ -9,12 +9,13 @@ |
namespace dart { |
TEST_CASE(TraceJSWarning) { |
- Isolate* isolate = Isolate::Current(); |
+ Zone* zone = thread->zone(); |
+ Isolate* isolate = thread->isolate(); |
TraceBuffer::Init(isolate, 3); |
TraceBuffer* trace_buffer = isolate->trace_buffer(); |
- const String& url = String::Handle(isolate, String::New("Plug")); |
- const String& source = String::Handle(isolate, String::New("240 100")); |
- const Script& script = Script::Handle(isolate, |
+ const String& url = String::Handle(zone, String::New("Plug")); |
+ const String& source = String::Handle(zone, String::New("240 100")); |
+ const Script& script = Script::Handle(zone, |
Script::New(url, source, RawScript::kEvaluateTag)); |
script.Tokenize(String::Handle(String::New(""))); |
{ |