Merge main into feat/scripts-text-paint

This commit is contained in:
dotCooCoo committed 2026-11-25 10:23:06 -08:00
commit ae19db09d6
304 files changed
+19030 -1648

No files matched your search

@@ -2,8 +2,8 @@
//! the tables below, and each name that reaches outside the document has the `outside` id
//! `script.check` (`vectorcraft-scriptcheck`) gives it. The names are read from a run: the own
//! properties of the global object, of each object or function it holds and of each function's
//! `prototype`, with a setter listed again as `name=`. The names a plain `vectorcraft_js::Realm` also
//! has are the language's, which reach files and other apps only through the host; `eval` and
//! `prototype`, with a setter listed again as `name=`. The names a plain `vectorcraft_js::Realm` with
//! E4X also has are the language's, which reach files and other apps only through the host; `eval` and
//! `Function` still have rows, since they run code the checker can't read. A name the host adds
//! without a row fails the test.
@@ -11,7 +11,7 @@ use std::collections::BTreeSet;
use serde_json::json;
use vectorcraft_engine::Session;
use vectorcraft_js::{DirectiveName, JsValue, Realm};
use vectorcraft_js::{DirectiveName, JsValue, Options, Realm};
use vectorcraft_scriptcheck::{Limits, check};
/// The names that reach outside the document: each with a script that uses it and the `outside` id
@@ -260,9 +260,9 @@ fn host_names() -> BTreeSet<String> {
text.lines().map(str::to_string).collect()
}
/// The names a plain JavaScript engine has.
/// The names a plain JavaScript engine with E4X has.
fn language_names() -> BTreeSet<String> {
match Realm::new().run(LIST) {
match Realm::with_options(Options { e4x: true, ..Options::default() }, vectorcraft_js::Limits::default()).run(LIST) {
Ok(JsValue::String(text)) => text.lines().map(str::to_string).collect(),
other => panic!("no list: {other:?}"),
}