Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 0e2f97c8137407175c0c3aa845ccf22ed46312ad..14fb42a26ea8da7b033f8bbace22fef01c5e2595 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -24630,3 +24630,15 @@ TEST(GetPrototypeHidden) { |
"f()"); |
CHECK(result->Equals(proto2)); |
} |
+ |
+ |
+TEST(ClassPrototypeCreationContext) { |
+ i::FLAG_harmony_classes = true; |
+ v8::Isolate* isolate = CcTest::isolate(); |
+ v8::HandleScope handle_scope(isolate); |
+ LocalContext env; |
+ |
+ Handle<Object> result = Handle<Object>::Cast( |
+ CompileRun("'use strict'; class Example { }; Example.prototype")); |
+ CHECK(env.local() == result->CreationContext()); |
+} |