diff options
Diffstat (limited to 'Godeps/_workspace/src/github.com/robertkrimen/otto/type_error.go')
-rw-r--r-- | Godeps/_workspace/src/github.com/robertkrimen/otto/type_error.go | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Godeps/_workspace/src/github.com/robertkrimen/otto/type_error.go b/Godeps/_workspace/src/github.com/robertkrimen/otto/type_error.go deleted file mode 100644 index c469f5fcb..000000000 --- a/Godeps/_workspace/src/github.com/robertkrimen/otto/type_error.go +++ /dev/null @@ -1,13 +0,0 @@ -package otto - -func (rt *_runtime) newErrorObject(name string, message Value) *_object { - self := rt.newClassObject("Error") - if message.IsDefined() { - msg := message.string() - self.defineProperty("message", toValue_string(msg), 0111, false) - self.value = newError(rt, name, msg) - } else { - self.value = newError(rt, name) - } - return self -} |