Push bleeding_edge revision 2020.
r2020 adds calling a non function as a constructor. This is a prerequisite for working on bug http://crbug.com/3285.
Review URL: http://codereview.chromium.org/114036
git-svn-id: http://v8.googlecode.com/svn/trunk@2022 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
diff --git a/src/runtime.cc b/src/runtime.cc
index eafa493..f5b366f 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -4356,6 +4356,14 @@
}
+static Object* Runtime_GetConstructorDelegate(Arguments args) {
+ HandleScope scope;
+ ASSERT(args.length() == 1);
+ RUNTIME_ASSERT(!args[0]->IsJSFunction());
+ return *Execution::GetConstructorDelegate(args.at<Object>(0));
+}
+
+
static Object* Runtime_NewContext(Arguments args) {
NoHandleAllocation ha;
ASSERT(args.length() == 1);