Index: src/v8.cc |
diff --git a/src/v8.cc b/src/v8.cc |
index eaff43c9bfb4bb8bcd69b2c2fb52c8a00f0ebebe..2407037b32feebaca9cc5bc28e50c49b58fac1f4 100644 |
--- a/src/v8.cc |
+++ b/src/v8.cc |
@@ -169,7 +169,7 @@ void V8::SetReturnAddressLocationResolver( |
// Used by JavaScript APIs |
uint32_t V8::Random(Context* context) { |
- ASSERT(context->IsGlobalContext()); |
+ ASSERT(context->IsNativeContext()); |
ByteArray* seed = context->random_seed(); |
return random_base(reinterpret_cast<uint32_t*>(seed->GetDataStartAddress())); |
} |