Index: test/intl/assert.js |
diff --git a/test/intl/assert.js b/test/intl/assert.js |
index 26405e8e9e1665a3d859dac2e420191150112c73..d8cc85849f463a8c1651395350dbb37e7f2a705f 100644 |
--- a/test/intl/assert.js |
+++ b/test/intl/assert.js |
@@ -180,12 +180,12 @@ function assertDoesNotThrow(code, user_message = '') { |
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 + '>' : '')); |
} |
} |