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

Unified Diff: src/contexts.cc

Issue 1476403004: Remove Object::IsSpecObject, use Object::IsJSReceiver instead. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 5 years, 1 month 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/code-stubs.cc ('k') | src/objects.h » ('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 206f4a2e73d17015a17238610b63b92d7553c98b..50c4386a362f92dae9c36d99b75521aad25901f7 100644
--- a/src/contexts.cc
+++ b/src/contexts.cc
@@ -161,7 +161,7 @@ static Maybe<PropertyAttributes> UnscopableLookup(LookupIterator* it) {
if (!maybe_unscopables.ToHandle(&unscopables)) {
return Nothing<PropertyAttributes>();
}
- if (!unscopables->IsSpecObject()) return attrs;
+ if (!unscopables->IsJSReceiver()) return attrs;
Handle<Object> blacklist;
MaybeHandle<Object> maybe_blacklist =
Object::GetProperty(unscopables, it->name());
« no previous file with comments | « src/code-stubs.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698