Chromium Code Reviews| Index: test/cctest/test-lockers.cc |
| diff --git a/test/cctest/test-lockers.cc b/test/cctest/test-lockers.cc |
| index 5b33f2ee06b7f8e50ca8ca46eb3f18b6424d97c7..9ca326448638daa27440009b2da7eb7c82b0e75e 100644 |
| --- a/test/cctest/test-lockers.cc |
| +++ b/test/cctest/test-lockers.cc |
| @@ -607,3 +607,23 @@ TEST(LockUnlockLockDefaultIsolateMultithreaded) { |
| } |
| StartJoinAndDeleteThreads(threads); |
| } |
| + |
| + |
| +TEST(Regress1433) { |
| + for (int i = 0; i < 10; i++) { |
| + v8::Isolate* isolate = v8::Isolate::New(); |
| + { |
| + v8::Locker l(isolate); |
|
Mads Ager (chromium)
2011/06/07 18:28:18
l -> lock?
Vitaly Repeshko
2011/06/07 18:32:53
Done.
|
| + v8::Isolate::Scope iscope(isolate); |
|
Mads Ager (chromium)
2011/06/07 18:28:18
iscope -> isolate_scope
to match the other naming
Vitaly Repeshko
2011/06/07 18:32:53
Done.
|
| + v8::HandleScope handle_scope; |
| + v8::Persistent<Context> context = v8::Context::New(); |
| + v8::Context::Scope context_scope(context); |
| + v8::Handle<String> source = v8::String::New("1+1"); |
| + v8::Handle<Script> script = v8::Script::Compile(source); |
| + v8::Handle<Value> result = script->Run(); |
| + v8::String::AsciiValue ascii(result); |
| + context.Dispose(); |
| + } |
| + isolate->Dispose(); |
| + } |
| +} |