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

Unified Diff: test/intl/assert.js

Issue 2582993002: [intl] Add new semantics + compat fallback to Intl constructor (Closed)
Patch Set: reformatting Created 4 years 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 | « test/cctest/interpreter/bytecode_expectations/Generators.golden ('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 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 + '>' : ''));
}
}
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Generators.golden ('k') | test/intl/general/constructor.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698