Index: src/accessors.cc |
diff --git a/src/accessors.cc b/src/accessors.cc |
index fac8ed96188a8c019aa05d73b414d2e5fc5d61c3..e60f568a278908fbfe7af23e84de4736af147068 100644 |
--- a/src/accessors.cc |
+++ b/src/accessors.cc |
@@ -675,7 +675,7 @@ static MaybeObject* CheckNonStrictCallerOrThrow( |
Isolate* isolate, |
JSFunction* caller) { |
DisableAssertNoAllocation enable_allocation; |
- if (caller->shared()->strict_mode()) { |
+ if (!caller->shared()->is_classic_mode()) { |
return isolate->Throw( |
*isolate->factory()->NewTypeError("strict_caller", |
HandleVector<Object>(NULL, 0))); |