Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1171)

Unified Diff: test/intl/assert.js

Issue 1828543007: Add new semantics + compat fallback to Intl constructor Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add tests; make more minimal Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/messages.h ('k') | test/intl/general/constructor.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 + '>' : ''));
}
}
« no previous file with comments | « src/messages.h ('k') | test/intl/general/constructor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698