Index: test/mjsunit/builtins.js |
diff --git a/test/mjsunit/builtins.js b/test/mjsunit/builtins.js |
index 062cfd5689de3aea6757f42bf949be2da9f2be02..ce2c6802f0716b4f1f57ccfb4fc3a8aa3c32aca9 100644 |
--- a/test/mjsunit/builtins.js |
+++ b/test/mjsunit/builtins.js |
@@ -54,7 +54,9 @@ 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); |
+ assertEquals(name == "GeneratorFunctionPrototype" ? Object.prototype : null, |
+ Object.getPrototypeOf(prototype), |
+ name); |
for (var i = 0; i < propNames.length; i++) { |
var propName = propNames[i]; |
if (propName == "constructor") continue; |