Index: src/runtime/runtime-function.cc |
diff --git a/src/runtime/runtime-function.cc b/src/runtime/runtime-function.cc |
index 62d5513e542782ed8b4d285d1130556e9789f0a1..0a9cd6313f53fc505f5c671cb9219649d289006f 100644 |
--- a/src/runtime/runtime-function.cc |
+++ b/src/runtime/runtime-function.cc |
@@ -28,7 +28,7 @@ RUNTIME_FUNCTION(Runtime_IsSloppyModeFunction) { |
} |
JSFunction* function = JSFunction::cast(callable); |
SharedFunctionInfo* shared = function->shared(); |
- return isolate->heap()->ToBoolean(shared->strict_mode() == SLOPPY); |
+ return isolate->heap()->ToBoolean(is_sloppy(shared->language_mode())); |
} |
@@ -48,7 +48,7 @@ RUNTIME_FUNCTION(Runtime_GetDefaultReceiver) { |
JSFunction* function = JSFunction::cast(callable); |
SharedFunctionInfo* shared = function->shared(); |
- if (shared->native() || shared->strict_mode() == STRICT) { |
+ if (shared->native() || is_strict(shared->language_mode())) { |
return isolate->heap()->undefined_value(); |
} |
// Returns undefined for strict or native functions, or |