Index: test/cctest/test-asm-validator.cc |
diff --git a/test/cctest/test-asm-validator.cc b/test/cctest/test-asm-validator.cc |
index 329efae066b3d30000291528a47aaa09278085ff..545957ad955e6230564e55ec5458f4b365f24044 100644 |
--- a/test/cctest/test-asm-validator.cc |
+++ b/test/cctest/test-asm-validator.cc |
@@ -1725,10 +1725,14 @@ TEST(NeStrict) { |
TEST(InstanceOf) { |
+ const char* errorMsg = FLAG_harmony_instanceof |
+ ? "asm: line 0: do-expression encountered\n" |
+ : "asm: line 39: illegal comparison operator\n"; |
+ |
CHECK_FUNC_ERROR( |
"function bar() { return (0 instanceof 0)|0; }\n" |
"function foo() { bar(); }", |
- "asm: line 39: illegal comparison operator\n"); |
+ errorMsg); |
} |