From 34c04da05d90d25b02d9e5ad940f35ee9b865fc6 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sat, 31 Dec 2022 00:16:59 +0800 Subject: [PATCH] feat: update readme, add regexp test --- __lang/boa/README.md | 6 ++++-- __lang/boa/src/main.rs | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/__lang/boa/README.md b/__lang/boa/README.md index f1df2d6..7f440df 100644 --- a/__lang/boa/README.md +++ b/__lang/boa/README.md @@ -1,4 +1,6 @@ +Post: +- https://boa-dev.github.io/posts/2022-10-24-boa-usage/ -https://boa-dev.github.io/posts/2022-10-24-boa-usage/ - +Need resolved issue: +- https://github.com/boa-dev/boa/issues/2350 diff --git a/__lang/boa/src/main.rs b/__lang/boa/src/main.rs index 1870e85..7bcebe1 100644 --- a/__lang/boa/src/main.rs +++ b/__lang/boa/src/main.rs @@ -3,7 +3,7 @@ use boa_engine::property::Attribute; fn main() { let mut context = Context::default(); - // context.set_trace(true); + context.set_trace(true); context.register_global_property("MY_PROJECT_VERSION", "1.0.0", Attribute::all()); context.register_global_function("print", 0, print); let script = r##" @@ -14,6 +14,7 @@ fn main() { helloworld(); for (var i = 0; i < 10; i++) {} // while(true) {} + /(a+)+b/.test('a'.repeat(15) + 'c'); "hello world!!!" "##; match context.eval(script) {