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

Unified Diff: test/mjsunit/builtins.js

Issue 13192004: arrange to create prototypes for generators (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Generators JS runtime to separate file, to avoid overhead when no --harmony-generators Created 7 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/builtins.js
diff --git a/test/mjsunit/builtins.js b/test/mjsunit/builtins.js
index 062cfd5689de3aea6757f42bf949be2da9f2be02..25f2e553f837c011e883448b8cb7ae9ef375067e 100644
--- a/test/mjsunit/builtins.js
+++ b/test/mjsunit/builtins.js
@@ -54,7 +54,11 @@ function checkConstructor(func, name) {
assertFalse(proto_desc.writable, name);
assertFalse(proto_desc.configurable, name);
var prototype = proto_desc.value;
- assertEquals(null, Object.getPrototypeOf(prototype), name);
+ var expected_prototype_of_prototype = null;
+ if (name == "GeneratorFunctionPrototype")
rossberg 2013/04/09 16:44:14 Nit: use ?:
+ expected_prototype_of_prototype = Object.prototype;
+ assertEquals(expected_prototype_of_prototype,
+ Object.getPrototypeOf(prototype), name);
for (var i = 0; i < propNames.length; i++) {
var propName = propNames[i];
if (propName == "constructor") continue;

Powered by Google App Engine
This is Rietveld 408576698