| Index: src/messages.js
|
| diff --git a/src/messages.js b/src/messages.js
|
| index 1ead322ec1a9d9105435576f84667ab36837db94..4b389a085b1ef44360b59d8790f80762c09dc02d 100644
|
| --- a/src/messages.js
|
| +++ b/src/messages.js
|
| @@ -229,7 +229,7 @@ function FormatMessage(message) {
|
| "strict_catch_variable", ["Catch variable may not be eval or arguments in strict mode"],
|
| "too_many_arguments", ["Too many arguments in function call (only 32766 allowed)"],
|
| "too_many_parameters", ["Too many parameters in function definition (only 32766 allowed)"],
|
| - "too_many_variables", ["Too many variables declared (only 65535 allowed)"],
|
| + "too_many_variables", ["Too many variables declared (only 32767 allowed)"],
|
| "strict_param_name", ["Parameter name eval or arguments is not allowed in strict mode"],
|
| "strict_param_dupe", ["Strict mode function may not have duplicate parameter names"],
|
| "strict_var_name", ["Variable name may not be eval or arguments in strict mode"],
|
| @@ -532,8 +532,8 @@ function ScriptLineCount() {
|
|
|
|
|
| /**
|
| - * If sourceURL comment is available and script starts at zero returns sourceURL
|
| - * comment contents. Otherwise, script name is returned. See
|
| + * Returns the name of script if available, contents of sourceURL comment
|
| + * otherwise. See
|
| * http://fbug.googlecode.com/svn/branches/firebug1.1/docs/ReleaseNotes_1.1.txt
|
| * for details on using //@ sourceURL comment to identify scritps that don't
|
| * have name.
|
| @@ -542,15 +542,14 @@ function ScriptLineCount() {
|
| * otherwise.
|
| */
|
| function ScriptNameOrSourceURL() {
|
| - if (this.line_offset > 0 || this.column_offset > 0) {
|
| + if (this.name) {
|
| return this.name;
|
| }
|
|
|
| // The result is cached as on long scripts it takes noticable time to search
|
| // for the sourceURL.
|
| - if (this.hasCachedNameOrSourceURL) {
|
| - return this.cachedNameOrSourceURL;
|
| - }
|
| + if (this.hasCachedNameOrSourceURL)
|
| + return this.cachedNameOrSourceURL;
|
| this.hasCachedNameOrSourceURL = true;
|
|
|
| // TODO(608): the spaces in a regexp below had to be escaped as \040
|
|
|