Index: test/cctest/asmjs/test-asm-typer.cc |
diff --git a/test/cctest/asmjs/test-asm-typer.cc b/test/cctest/asmjs/test-asm-typer.cc |
index 828a0cd12e3a2b7dd3bfcc28b6a7c5aeaf243779..31d01aa1669a88ffa8180dc5f419408dcda0073a 100644 |
--- a/test/cctest/asmjs/test-asm-typer.cc |
+++ b/test/cctest/asmjs/test-asm-typer.cc |
@@ -505,10 +505,10 @@ TEST(ErrorsInGlobalVariableDefinition) { |
const char* error_message; |
} kTests[] = { |
{"var v;", "Global variable missing initializer"}, |
- {"var v = uninitialized;", "Invalid global variable initializer"}, |
+ {"var v = uninitialized;", "Undeclared identifier in global"}, |
{"var v = 'use asm';", "type annotation - forbidden literal"}, |
{"var v = 4294967296;", " - forbidden literal"}, |
- {"var v = not_fround;", "Invalid global variable initializer"}, |
+ {"var v = not_fround;", "initialize a global must be a const"}, |
bradnelson
2016/10/19 21:52:07
Add tests that hit:
Undeclared identifier in retur
John
2016/10/20 15:13:22
Done.
|
{"var v = not_fround(1);", "expected call fround(literal)"}, |
{"var v = __fround__(1.0);", "expected call fround(literal)"}, |
{"var v = fround(1.0, 1.0);", "expected call fround(literal)"}, |