2 * The builtin Function object.
3 * Copyright (c) 1998 New Generation Software (NGS) Oy
5 * Author: Markku Rossi <mtr@ngs.fi>
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public
11 * License as published by the Free Software Foundation; either
12 * version 2 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Library General Public License for more details.
19 * You should have received a copy of the GNU Library General Public
20 * License along with this library; if not, write to the Free
21 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
26 * $Source: /cygdrive/c/RCVS/CVS/ReactOS/reactos/lib/kjs/src/b_func.c,v $
38 method (JSVirtualMachine
*vm
, JSBuiltinInfo
*builtin_info
,
39 void *instance_context
, JSSymbol method
, JSNode
*result_return
,
42 return JS_PROPERTY_UNKNOWN
;
47 property (JSVirtualMachine
*vm
, JSBuiltinInfo
*builtin_info
,
48 void *instance_context
, JSSymbol property
, int set
, JSNode
*node
)
50 JSNode
*n
= instance_context
;
53 node
->type
= JS_UNDEFINED
;
55 return JS_PROPERTY_UNKNOWN
;
64 js_builtin_Function (JSVirtualMachine
*vm
)
69 info
= js_vm_builtin_info_create (vm
);
70 vm
->prim
[JS_FUNC
] = info
;
72 info
->method_proc
= method
;
73 info
->property_proc
= property
;
76 n
= &vm
->globals
[js_vm_intern (vm
, "Function")];
77 js_vm_builtin_create (vm
, n
, info
, NULL
);