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

Unified Diff: test/mjsunit/es6/error-functions-prototypes.js

Issue 1049323003: ES6: Error functions should extend Error (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update .status files Created 5 years, 9 months 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: test/mjsunit/es6/error-functions-prototypes.js
diff --git a/test/mjsunit/es6/error-functions-prototypes.js b/test/mjsunit/es6/error-functions-prototypes.js
new file mode 100644
index 0000000000000000000000000000000000000000..2f5efa0543515bc7f528b926e92e21d758cc49af
--- /dev/null
+++ b/test/mjsunit/es6/error-functions-prototypes.js
@@ -0,0 +1,17 @@
+// Copyright 2015 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+
+function assertPrototypeOf(expected, func) {
+ assertEquals(expected, Object.getPrototypeOf(func));
+}
+
+
+assertPrototypeOf(Function.prototype, Error);
+assertPrototypeOf(Error, TypeError);
+assertPrototypeOf(Error, RangeError);
+assertPrototypeOf(Error, SyntaxError);
+assertPrototypeOf(Error, ReferenceError);
+assertPrototypeOf(Error, EvalError);
+assertPrototypeOf(Error, URIError);
« src/messages.js ('K') | « src/messages.js ('k') | test/test262-es6/test262-es6.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698