Changeset 34598 in webkit for trunk/JavaScriptCore/API/JSNode.c
- Timestamp:
- Jun 16, 2008, 6:39:59 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSNode.c
r29991 r34598 1 / / -*- mode: c++; c-basic-offset: 4 -*-1 /* -*- mode: c; c-basic-offset: 4 -*- */ 2 2 /* 3 3 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. … … 39 39 UNUSED_PARAM(function); 40 40 41 / / Example of throwing a type error for invalid values41 /* Example of throwing a type error for invalid values */ 42 42 if (!JSValueIsObjectOfClass(context, thisObject, JSNode_class(context))) { 43 43 JSStringRef message = JSStringCreateWithUTF8CString("TypeError: appendChild can only be called on nodes"); … … 61 61 { 62 62 UNUSED_PARAM(function); 63 64 / / Example of ignoring invalid values63 64 /* Example of ignoring invalid values */ 65 65 if (argumentCount > 0) { 66 66 if (JSValueIsObjectOfClass(context, thisObject, JSNode_class(context))) {
Note:
See TracChangeset
for help on using the changeset viewer.