diff --git a/app/lib/world/errors.coffee b/app/lib/world/errors.coffee index c4eee90e7..c766d76a6 100644 --- a/app/lib/world/errors.coffee +++ b/app/lib/world/errors.coffee @@ -3,7 +3,7 @@ Vector = require './vector' module.exports.ArgumentError = class ArgumentError extends Error @className: 'ArgumentError' constructor: (@message, @functionName, @argumentName, @intendedType, @actualValue, @numArguments, @hint) -> - super message + super @message @name = 'ArgumentError' if Error.captureStackTrace? Error.captureStackTrace @, @constructor