Chromium Code Reviews| Index: test/mjsunit/builtins.js |
| diff --git a/test/mjsunit/builtins.js b/test/mjsunit/builtins.js |
| index 062cfd5689de3aea6757f42bf949be2da9f2be02..76f820021efbf338235a60a0ca77ab19d85687c7 100644 |
| --- a/test/mjsunit/builtins.js |
| +++ b/test/mjsunit/builtins.js |
| @@ -54,7 +54,10 @@ 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 = |
|
rossberg
2013/04/11 13:05:20
Nit: could inline this.
wingo
2013/04/11 14:38:45
Done.
|
| + name == "GeneratorFunctionPrototype" ? Object.prototype : null; |
| + 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; |