Commit c5ccae97 authored by dcheng's avatar dcheng Committed by Commit bot

Remove a few unnecssary scopers from unit tests.

TestWithIsolate and TestWithContext already instantiate the scopers.

BUG=none

Review-Url: https://codereview.chromium.org/2690303009
Cr-Commit-Position: refs/heads/master@{#43268}
parent 4a743610
......@@ -44,8 +44,6 @@ class MemoryPressureTask : public v8::Task {
// Check that triggering a memory pressure notification on the isolate thread
// doesn't request a GC interrupt.
TEST_F(IsolateTest, MemoryPressureNotificationForeground) {
Isolate::Scope isolate_scope(isolate());
internal::Isolate* i_isolate =
reinterpret_cast<internal::Isolate*>(isolate());
......@@ -57,8 +55,6 @@ TEST_F(IsolateTest, MemoryPressureNotificationForeground) {
// Check that triggering a memory pressure notification on an background thread
// requests a GC interrupt.
TEST_F(IsolateTest, MemoryPressureNotificationBackground) {
Isolate::Scope isolate_scope(isolate());
internal::Isolate* i_isolate =
reinterpret_cast<internal::Isolate*>(isolate());
......
......@@ -15,8 +15,6 @@ void accessor_name_getter_callback(Local<Name>,
const PropertyCallbackInfo<Value>&) {}
TEST_F(ObjectTest, SetAccessorWhenUnconfigurablePropAlreadyDefined) {
Context::Scope context_scope(context());
TryCatch try_catch(isolate());
Local<Object> global = context()->Global();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment