Index: test/intl/assert.js |
diff --git a/test/intl/assert.js b/test/intl/assert.js |
index 3180e6f96e69db62c56f8eb7564bead6e9155a2d..781b9022bae23d9137878cf49618ebd1c829a63b 100644 |
--- a/test/intl/assert.js |
+++ b/test/intl/assert.js |
@@ -173,12 +173,12 @@ function assertDoesNotThrow(code, name_opt) { |
function assertInstanceof(obj, type) { |
if (!(obj instanceof type)) { |
var actualTypeName = null; |
- var actualConstructor = Object.prototypeOf(obj).constructor; |
+ var actualConstructor = Object.getPrototypeOf(obj).constructor; |
if (typeof actualConstructor == "function") { |
actualTypeName = actualConstructor.name || String(actualConstructor); |
} |
throw new Error('Object <' + obj + '> is not an instance of <' + |
- (type.name || type) + '>' + |
- (actualTypeName ? ' but of < ' + actualTypeName + '>' : '')); |
+ (type.name || type) + '>' + |
+ (actualTypeName ? ' but of < ' + actualTypeName + '>' : '')); |
} |
} |