Chromium Code Reviews| Index: src/messages.js |
| diff --git a/src/messages.js b/src/messages.js |
| index d91c25108d0b5fc50d3b613fb982573dc456b974..da61b9c9f516bd170c4eb10b82c796c85e2dbf89 100644 |
| --- a/src/messages.js |
| +++ b/src/messages.js |
| @@ -50,7 +50,12 @@ function FormatString(format, message) { |
| try { |
| str = ToDetailString(args[arg_num]); |
| } catch (e) { |
| - str = "#<error>"; |
| + if (%IsJSModule(args[arg_num])) |
| + str = "module"; |
| + else if (IS_SPEC_OBJECT(args[arg_num])) |
| + str = "object"; |
| + else |
| + str = "#<error>"; |
| } |
| } |
| } |
| @@ -251,6 +256,7 @@ function FormatMessage(message) { |
| "harmony_const_assign", ["Assignment to constant variable."], |
| "invalid_module_path", ["Module does not export '", "%0", "', or export is not itself a module"], |
| "module_type_error", ["Module '", "%0", "' used improperly"], |
| + "export_undefined", ["Export '", "%0", "' is not defined in module"], |
|
Michael Starzinger
2012/07/06 10:53:22
Should we maybe name this "module_export_undefined
rossberg
2012/07/06 15:39:28
Done.
|
| ]; |
| var messages = { __proto__ : null }; |
| for (var i = 0; i < messagesDictionary.length; i += 2) { |