| Index: src/messages.js
|
| diff --git a/src/messages.js b/src/messages.js
|
| index ca2da30472effb406677e912e6e6225dd5a175e7..e9f1ae46c258470d28ed71b319239efe652f9f72 100644
|
| --- a/src/messages.js
|
| +++ b/src/messages.js
|
| @@ -120,7 +120,7 @@ var kMessages = {
|
| invalid_string_length: ["Invalid string length"],
|
| invalid_typed_array_offset: ["Start offset is too large:"],
|
| invalid_typed_array_length: ["Invalid typed array length"],
|
| - invalid_typed_array_alignment: ["%0", " of ", "%1", " should be a multiple of ", "%2"],
|
| + invalid_typed_array_alignment: ["%0", "of", "%1", "should be a multiple of", "%3"],
|
| typed_array_set_source_too_large:
|
| ["Source is too large"],
|
| typed_array_set_negative_offset:
|
| @@ -176,8 +176,7 @@ var kMessages = {
|
| cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an object with external array elements"],
|
| redef_external_array_element: ["Cannot redefine a property of an object with external array elements"],
|
| harmony_const_assign: ["Assignment to constant variable."],
|
| - symbol_to_string: ["Cannot convert a Symbol value to a string"],
|
| - symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a primitive value"],
|
| + symbol_to_string: ["Conversion from symbol to string"],
|
| invalid_module_path: ["Module does not export '", "%0", "', or export is not itself a module"],
|
| module_type_error: ["Module '", "%0", "' used improperly"],
|
| module_export_undefined: ["Export '", "%0", "' is not defined in module"]
|
| @@ -940,10 +939,14 @@ function CallSiteToString() {
|
| if (this.isNative()) {
|
| fileLocation = "native";
|
| } else {
|
| - fileName = this.getScriptNameOrSourceURL();
|
| - if (!fileName && this.isEval()) {
|
| - fileLocation = this.getEvalOrigin();
|
| - fileLocation += ", "; // Expecting source position to follow.
|
| + if (this.isEval()) {
|
| + fileName = this.getScriptNameOrSourceURL();
|
| + if (!fileName) {
|
| + fileLocation = this.getEvalOrigin();
|
| + fileLocation += ", "; // Expecting source position to follow.
|
| + }
|
| + } else {
|
| + fileName = this.getFileName();
|
| }
|
|
|
| if (fileName) {
|
|
|