aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/src/contexts.cc
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2017-10-18 15:03:02 -0700
committerMichaël Zasso <targos@protonmail.com>2017-10-18 17:01:41 -0700
commit3d1b3df9486c0e7708065257f7311902f6b7b366 (patch)
treecb051bdeaead11e06dcd97725783e0f113afb1bf /deps/v8/src/contexts.cc
parente2cddbb8ccdb7b3c4a40c8acc630f68703bc77b5 (diff)
downloadandroid-node-v8-3d1b3df9486c0e7708065257f7311902f6b7b366.tar.gz
android-node-v8-3d1b3df9486c0e7708065257f7311902f6b7b366.tar.bz2
android-node-v8-3d1b3df9486c0e7708065257f7311902f6b7b366.zip
deps: update V8 to 6.2.414.32
PR-URL: https://github.com/nodejs/node/pull/15362 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'deps/v8/src/contexts.cc')
-rw-r--r--deps/v8/src/contexts.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/deps/v8/src/contexts.cc b/deps/v8/src/contexts.cc
index 725e55e72f..a6b7b289fb 100644
--- a/deps/v8/src/contexts.cc
+++ b/deps/v8/src/contexts.cc
@@ -199,7 +199,8 @@ static PropertyAttributes GetAttributesForMode(VariableMode mode) {
Handle<Object> Context::Lookup(Handle<String> name, ContextLookupFlags flags,
int* index, PropertyAttributes* attributes,
InitializationFlag* init_flag,
- VariableMode* variable_mode) {
+ VariableMode* variable_mode,
+ bool* is_sloppy_function_name) {
Isolate* isolate = GetIsolate();
Handle<Context> context(this, isolate);
@@ -209,6 +210,9 @@ Handle<Object> Context::Lookup(Handle<String> name, ContextLookupFlags flags,
*attributes = ABSENT;
*init_flag = kCreatedInitialized;
*variable_mode = VAR;
+ if (is_sloppy_function_name != nullptr) {
+ *is_sloppy_function_name = false;
+ }
if (FLAG_trace_contexts) {
PrintF("Context::Lookup(");
@@ -343,6 +347,10 @@ Handle<Object> Context::Lookup(Handle<String> name, ContextLookupFlags flags,
*attributes = READ_ONLY;
*init_flag = kCreatedInitialized;
*variable_mode = CONST;
+ if (is_sloppy_function_name != nullptr &&
+ is_sloppy(scope_info->language_mode())) {
+ *is_sloppy_function_name = true;
+ }
return context;
}
}