Skip to content

Commit 0da2ef2

Browse files
committed
Add method to html_dartium utils to check for NSM errors
BUG= R=vsm@google.com Review URL: https://codereview.chromium.org//21676003 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25741 260f80e4-7a28-3924-810f-c04153c831b5
1 parent 4039490 commit 0da2ef2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

sdk/lib/html/dartium/html_dartium.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32037,6 +32037,8 @@ class _Utils {
3203732037
// TODO(jacobr): we need a failsafe way to determine that a Node is really a
3203832038
// DOM node rather than just a class that extends Node.
3203932039
static bool isNode(obj) => obj is Node;
32040+
32041+
static bool isNoSuchMethodError(obj) => obj is NoSuchMethodError;
3204032042
}
3204132043

3204232044
class _NPObject extends NativeFieldWrapperClass1 {

tools/dom/src/native_DOMImplementation.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ class _Utils {
189189

190190
static String addTrailingDot(String str) => '${str}.';
191191

192+
static bool isNoSuchMethodError(obj) => obj is NoSuchMethodError;
193+
192194
// TODO(jacobr): we need a failsafe way to determine that a Node is really a
193195
// DOM node rather than just a class that extends Node.
194196
static bool isNode(obj) => obj is Node;

0 commit comments

Comments
 (0)