2017-01-03 13:16:48 -08:00
|
|
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
|
|
|
//
|
|
|
|
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
|
// copy of this software and associated documentation files (the
|
|
|
|
|
// "Software"), to deal in the Software without restriction, including
|
|
|
|
|
// without limitation the rights to use, copy, modify, merge, publish,
|
|
|
|
|
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
|
|
|
// persons to whom the Software is furnished to do so, subject to the
|
|
|
|
|
// following conditions:
|
|
|
|
|
//
|
|
|
|
|
// The above copyright notice and this permission notice shall be included
|
|
|
|
|
// in all copies or substantial portions of the Software.
|
|
|
|
|
//
|
|
|
|
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
|
|
|
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
|
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
|
|
|
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
|
|
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
|
|
|
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
|
|
|
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
|
|
2013-07-31 22:07:29 +04:00
|
|
|
#ifndef SRC_NODE_JAVASCRIPT_H_
|
|
|
|
|
#define SRC_NODE_JAVASCRIPT_H_
|
|
|
|
|
|
2016-05-24 09:54:05 +02:00
|
|
|
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
|
|
|
|
|
2017-08-08 19:56:02 +02:00
|
|
|
#include "node_internals.h"
|
2010-10-12 11:49:41 -07:00
|
|
|
|
|
|
|
|
namespace node {
|
|
|
|
|
|
2015-07-18 11:34:16 +02:00
|
|
|
void DefineJavaScript(Environment* env, v8::Local<v8::Object> target);
|
2018-08-06 23:27:03 +08:00
|
|
|
void DefineJavaScriptHash(Environment* env, v8::Local<v8::Object> target);
|
2018-06-25 02:08:27 -05:00
|
|
|
v8::Local<v8::String> NodePerContextSource(v8::Isolate* isolate);
|
2018-03-04 04:55:45 +08:00
|
|
|
v8::Local<v8::String> LoadersBootstrapperSource(Environment* env);
|
|
|
|
|
v8::Local<v8::String> NodeBootstrapperSource(Environment* env);
|
2010-10-12 11:49:41 -07:00
|
|
|
|
|
|
|
|
} // namespace node
|
2013-07-31 22:07:29 +04:00
|
|
|
|
2016-05-24 09:54:05 +02:00
|
|
|
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
|
|
|
|
|
|
2013-07-31 22:07:29 +04:00
|
|
|
#endif // SRC_NODE_JAVASCRIPT_H_
|