aboutsummaryrefslogtreecommitdiff
path: root/src/messages.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/messages.js')
-rw-r--r--src/messages.js11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/messages.js b/src/messages.js
index 99ba4546..b0f8aa16 100644
--- a/src/messages.js
+++ b/src/messages.js
@@ -181,7 +181,6 @@ function FormatMessage(message) {
// RangeError
invalid_array_length: "Invalid array length",
stack_overflow: "Maximum call stack size exceeded",
- apply_overflow: "Function.prototype.apply cannot support %0 arguments",
// SyntaxError
unable_to_parse: "Parse error",
duplicate_regexp_flag: "Duplicate RegExp flag %0",
@@ -601,18 +600,22 @@ function GetPositionInLine(message) {
}
-function ErrorMessage(type, args, startPos, endPos, script, stackTrace) {
+function ErrorMessage(type, args, startPos, endPos, script, stackTrace,
+ stackFrames) {
this.startPos = startPos;
this.endPos = endPos;
this.type = type;
this.args = args;
this.script = script;
this.stackTrace = stackTrace;
+ this.stackFrames = stackFrames;
}
-function MakeMessage(type, args, startPos, endPos, script, stackTrace) {
- return new ErrorMessage(type, args, startPos, endPos, script, stackTrace);
+function MakeMessage(type, args, startPos, endPos, script, stackTrace,
+ stackFrames) {
+ return new ErrorMessage(type, args, startPos, endPos, script, stackTrace,
+ stackFrames);
}