Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Unified Diff: src/execution.cc

Issue 894683003: Introduce LanguageMode, drop StrictMode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: . Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/elements.cc ('k') | src/factory.cc » ('j') | src/globals.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/execution.cc
diff --git a/src/execution.cc b/src/execution.cc
index 9f418ac5d843e0a1f300974313e5c404e28d58fb..0709a18f31ac495b6c4dd49769e350c4ecdc47b9 100644
--- a/src/execution.cc
+++ b/src/execution.cc
@@ -167,7 +167,7 @@ MaybeHandle<Object> Execution::Call(Isolate* isolate,
// In sloppy mode, convert receiver.
if (convert_receiver && !receiver->IsJSReceiver() &&
!func->shared()->native() &&
- func->shared()->strict_mode() == SLOPPY) {
+ !is_strict(func->shared()->language_mode())) {
if (receiver->IsUndefined() || receiver->IsNull()) {
receiver = handle(func->global_proxy());
DCHECK(!receiver->IsJSBuiltinsObject());
« no previous file with comments | « src/elements.cc ('k') | src/factory.cc » ('j') | src/globals.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698