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

Unified Diff: src/contexts.cc

Issue 1045113002: ES6: Unscopable should use ToBoolean (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | test/mjsunit/es6/unscopables.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/contexts.cc
diff --git a/src/contexts.cc b/src/contexts.cc
index 6bd6764546702d8cf2a9de42b55435e3046b6e9f..a6a61df624a49c9460806a96fee5b166ba65efcd 100644
--- a/src/contexts.cc
+++ b/src/contexts.cc
@@ -141,7 +141,7 @@ static Maybe<PropertyAttributes> UnscopableLookup(LookupIterator* it) {
DCHECK(isolate->has_pending_exception());
return Nothing<PropertyAttributes>();
}
- return blacklist->IsUndefined() ? attrs : Just(ABSENT);
+ return blacklist->BooleanValue() ? Just(ABSENT) : attrs;
}
static void GetAttributesAndBindingFlags(VariableMode mode,
« no previous file with comments | « no previous file | test/mjsunit/es6/unscopables.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698