Chromium Code Reviews| Index: test/mjsunit/mjsunit.js |
| diff --git a/test/mjsunit/mjsunit.js b/test/mjsunit/mjsunit.js |
| index 65fb301b440ead7c7db977059beb9d3088f0519b..25d7c004326ce3df03ebe83edb2f0becd5336bba 100644 |
| --- a/test/mjsunit/mjsunit.js |
| +++ b/test/mjsunit/mjsunit.js |
| @@ -321,7 +321,7 @@ var assertUnreachable; |
| assertInstanceof = function assertInstanceof(obj, type) { |
| if (!(obj instanceof type)) { |
| var actualTypeName = null; |
| - var actualConstructor = Object.prototypeOf(obj).constructor; |
|
Michael Starzinger
2012/06/25 09:56:45
How did that even ... ah forget it.
rossberg
2012/06/28 16:23:34
Great stuff, isn't it?
|
| + var actualConstructor = Object.getPrototypeOf(obj).constructor; |
| if (typeof actualConstructor == "function") { |
| actualTypeName = actualConstructor.name || String(actualConstructor); |
| } |