blob: 733970e545d654f489071dd25f0419743cd0c568 [file] [log] [blame]
jat@google.com134be542009-08-03 15:30:11 +00001#ifndef _H_JSRunner
2#define _H_JSRunner
3/*
4 * Copyright 2008 Google Inc.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
7 * use this file except in compliance with the License. You may obtain a copy of
8 * the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15 * License for the specific language governing permissions and limitations under
16 * the License.
17 */
18
19#include <string>
20
21#include "mozincludes.h"
22#include "jsapi.h"
23
24class JSRunner {
25public:
26 static bool eval(JSContext* ctx, JSObject* global, const std::string& script);
27};
28
29#endif