Tj Holowaychuk 14 years ago
parent
commit
750a3b5edf
  1. 2
      src/CanvasRenderingContext2d.cc

2
src/CanvasRenderingContext2d.cc

@ -405,7 +405,6 @@ Context2d::DrawImage(const Arguments &args) {
#endif #endif
// TODO: instanceof // TODO: instanceof
// TODO: arg handling / boundaries
Image *img = ObjectWrap::Unwrap<Image>(args[0]->ToObject()); Image *img = ObjectWrap::Unwrap<Image>(args[0]->ToObject());
Context2d *context = ObjectWrap::Unwrap<Context2d>(args.This()); Context2d *context = ObjectWrap::Unwrap<Context2d>(args.This());
cairo_t *ctx = context->context(); cairo_t *ctx = context->context();
@ -444,7 +443,6 @@ Context2d::DrawImage(const Arguments &args) {
dh = img->height; dh = img->height;
break; break;
default: default:
// TODO: throw
return ThrowException(Exception::TypeError(String::New("invalid arguments"))); return ThrowException(Exception::TypeError(String::New("invalid arguments")));
} }

Loading…
Cancel
Save