javascript/
lib.rs

1#![doc = include_str!("../README.md")]
2
3// pub mod cutils;
4// pub mod libregexp;
5// pub mod libunicode;
6// pub mod libunicode_table;
7pub(crate) mod core;
8#[macro_use]
9pub(crate) mod error;
10pub(crate) mod js_array;
11pub(crate) mod js_assert;
12pub(crate) mod js_class;
13pub(crate) mod js_console;
14pub(crate) mod js_date;
15pub(crate) mod js_function;
16pub(crate) mod js_generator;
17pub(crate) mod js_json;
18pub(crate) mod js_map;
19pub(crate) mod js_math;
20pub(crate) mod js_module;
21pub(crate) mod js_number;
22pub(crate) mod js_object;
23pub(crate) mod js_os;
24pub(crate) mod js_promise;
25pub(crate) mod js_proxy;
26pub(crate) mod js_regexp;
27pub(crate) mod js_set;
28pub(crate) mod js_std;
29pub(crate) mod js_string;
30pub(crate) mod js_testintl;
31pub(crate) mod js_typedarray;
32pub(crate) mod js_weakmap;
33pub(crate) mod js_weakset;
34pub(crate) mod repl;
35pub(crate) mod sprintf;
36pub(crate) mod tmpfile;
37pub(crate) mod unicode;
38
39pub use core::{
40    JS_DefinePropertyValue, JS_DupValue, JS_Eval, JS_FreeContext, JS_FreeRuntime, JS_FreeValue, JS_GetProperty, JS_NewContext,
41    JS_NewObject, JS_NewRuntime, JS_NewString, JS_SetProperty, JSClassDef, JSObject, JSStackFrame, JSString, JSValue, PropertyKey, Value,
42    evaluate_script, get_prop_env, obj_get_value, tokenize,
43};
44pub use core::{
45    JS_FLOAT64_NAN, JS_GC_OBJ_TYPE_ASYNC_FUNCTION, JS_GC_OBJ_TYPE_FUNCTION_BYTECODE, JS_GC_OBJ_TYPE_JS_CONTEXT, JS_GC_OBJ_TYPE_JS_OBJECT,
46    JS_GC_OBJ_TYPE_SHAPE, JS_GC_OBJ_TYPE_VAR_REF, JS_TAG_BOOL, JS_TAG_CATCH_OFFSET, JS_TAG_FLOAT64, JS_TAG_INT, JS_TAG_NULL, JS_TAG_OBJECT,
47    JS_TAG_SHORT_BIG_INT, JS_TAG_STRING, JS_TAG_STRING_ROPE, JS_TAG_UNDEFINED, JS_UNINITIALIZED,
48};
49pub use core::{JSArrayBuffer, JSDataView, JSTypedArray, TypedArrayKind};
50pub use core::{
51    JSObjectData, Token, initialize_global_constructors, parse_expression, parse_object_destructuring_pattern, parse_statement,
52    parse_statements,
53};
54pub use error::{JSError, JSErrorKind};
55pub use repl::Repl;