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

Unified Diff: src/bootstrapper.cc

Issue 1479543002: [proxies] Implement [[Delete]]. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typo 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
Index: src/bootstrapper.cc
diff --git a/src/bootstrapper.cc b/src/bootstrapper.cc
index 20b3cfdf2096103ccc833bae1c91306798218ddb..1d1436dd87de4f2bd40dc8531a900c5d433e62e0 100644
--- a/src/bootstrapper.cc
+++ b/src/bootstrapper.cc
@@ -687,7 +687,9 @@ Handle<JSFunction> Genesis::GetThrowTypeErrorIntrinsic(
function->shared()->DontAdaptArguments();
// %ThrowTypeError% must not have a name property.
- JSReceiver::DeleteProperty(function, factory()->name_string()).Assert();
+ if (JSReceiver::DeleteProperty(function, factory()->name_string())
+ .IsNothing())
+ DCHECK(false);
// length needs to be non configurable.
Handle<Object> value(Smi::FromInt(function->shared()->length()), isolate());
« no previous file with comments | « src/api.cc ('k') | src/builtins.cc » ('j') | test/mjsunit/harmony/proxies-delete-property.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698