Chromium Code Reviews| Index: src/messages.js |
| diff --git a/src/messages.js b/src/messages.js |
| index 3d6c8ce2d88ba983e42d37c15c9e0ffcfa125e73..4762db697c4d5efa394e273b4a0880441d6144d3 100644 |
| --- a/src/messages.js |
| +++ b/src/messages.js |
| @@ -256,8 +256,6 @@ function MakeGenericError(constructor, type, args) { |
| args = []; |
| } |
| var e = new constructor(FormatMessage(type, args)); |
|
Sven Panne
2012/11/14 08:40:35
Just drop the "var e =", it's cleaner... ;-)
|
| - e.type = type; |
| - e.arguments = args; |
| return e; |
| } |
| @@ -1143,8 +1141,6 @@ function SetUpError() { |
| // object. This avoids going through getters and setters defined |
| // on prototype objects. |
| %IgnoreAttributesAndSetProperty(this, 'stack', void 0, DONT_ENUM); |
| - %IgnoreAttributesAndSetProperty(this, 'arguments', void 0, DONT_ENUM); |
| - %IgnoreAttributesAndSetProperty(this, 'type', void 0, DONT_ENUM); |
| if (!IS_UNDEFINED(m)) { |
| %IgnoreAttributesAndSetProperty( |
| this, 'message', ToString(m), DONT_ENUM); |
| @@ -1204,7 +1200,6 @@ function GetPropertyWithoutInvokingMonkeyGetters(error, name) { |
| function ErrorToStringDetectCycle(error) { |
| if (!%PushIfAbsent(visited_errors, error)) throw cyclic_error_marker; |
| try { |
| - var type = GetPropertyWithoutInvokingMonkeyGetters(error, "type"); |
| var name = GetPropertyWithoutInvokingMonkeyGetters(error, "name"); |
| name = IS_UNDEFINED(name) ? "Error" : TO_STRING_INLINE(name); |
| var message = GetPropertyWithoutInvokingMonkeyGetters(error, "message"); |