From 64409f370b698c45cbcd9604afdef3ade39f64e9 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Tue, 17 Feb 2015 10:15:27 -0800 Subject: [PATCH] ParentNode#appendChild(null) shouldn't crash We just needed to throw the proper exception when handed null for a non-nullable argument. R=esprehn@chromium.org Review URL: https://codereview.chromium.org/934863002 --- engine/src/flutter/tests/dom/appendChild.sky | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/engine/src/flutter/tests/dom/appendChild.sky b/engine/src/flutter/tests/dom/appendChild.sky index 57a6a2ff87..35494a0a59 100644 --- a/engine/src/flutter/tests/dom/appendChild.sky +++ b/engine/src/flutter/tests/dom/appendChild.sky @@ -17,10 +17,9 @@ void main() { expect(() { parent.appendChild(); }, throws); - // TODO(dart): This is a real bug. - // expect(() { - // parent.appendChild(null); - // }, throws); + expect(() { + parent.appendChild(null); + }, throws); expect(() { parent.appendChild({tagName: "div"}); }, throws);