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

Unified Diff: src/harmony-classes.js

Issue 698073005: Classes: Fix issue with default constructor crash (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/harmony-classes.js
diff --git a/src/harmony-classes.js b/src/harmony-classes.js
index b6605a902c3059bef54ad3b0956931fcaf19e1d3..e286259393dbd1a59b7a30d63b5a08d1790d5aaa 100644
--- a/src/harmony-classes.js
+++ b/src/harmony-classes.js
@@ -8,6 +8,15 @@
// var $Array = global.Array;
+function DefaultConstructor() {
+ // TODO(arv): Handle arguments.
+ super();
+}
+
+
+function DefaultConstructorNoSuper() {}
+
+
(function() {
function FunctionToMethod(homeObject) {
if (!IS_SPEC_FUNCTION(this)) {

Powered by Google App Engine
This is Rietveld 408576698