Index: src/builtins.cc |
diff --git a/src/builtins.cc b/src/builtins.cc |
index 9fb8078b718fcf5bd2ff9012443a665c5210552a..fcac684ce396c289438f15c97ca6789525611eea 100644 |
--- a/src/builtins.cc |
+++ b/src/builtins.cc |
@@ -1799,6 +1799,7 @@ BUILTIN(ProxyConstructor) { |
// ES6 section 26.2.1.1 Proxy ( target, handler ) for the [[Construct]] case. |
BUILTIN(ProxyConstructor_ConstructStub) { |
HandleScope scope(isolate); |
+ DCHECK(isolate->proxy_function()->IsConstructor()); |
DCHECK_EQ(3, args.length()); |
Handle<Object> target = args.at<Object>(1); |
Handle<Object> handler = args.at<Object>(2); |