Browse Source

Feature flag on builtins console import (#2584)

<!---
Thank you for contributing to Boa! Please fill out the template below, and remove or add any
information as you feel necessary.
--->

Adding a feature flag to the console import in `builtins`. I think this should fix the failing action on the `Upload docs and run benchmarks` step
pull/2587/head
Kevin 2 years ago
parent
commit
9d521f9acf
  1. 2
      .github/workflows/rust.yml
  2. 4
      boa_engine/src/builtins/mod.rs

2
.github/workflows/rust.yml

@ -77,7 +77,7 @@ jobs:
- name: Lint (All features)
run: cargo clippy --all-features --all-targets
- name: Lint (No features)
run: cargo clippy --no-default-features --all-targets
run: cargo clippy -p boa_engine --no-default-features --all-targets
- name: Generate documentation
run: cargo doc -v --document-private-items --all-features
- name: Build

4
boa_engine/src/builtins/mod.rs

@ -86,7 +86,6 @@ use crate::{
uri::{DecodeUri, DecodeUriComponent, EncodeUri, EncodeUriComponent},
weak::WeakRef,
},
console::Console,
context::intrinsics::{Intrinsics, StandardConstructor, StandardConstructors},
js_string,
native_function::{NativeFunction, NativeFunctionPointer},
@ -97,6 +96,9 @@ use crate::{
Context, JsResult, JsString, JsValue,
};
#[cfg(feature = "console")]
use crate::console::Console;
/// A [Well-Known Intrinsic Object].
///
/// Well-known intrinsics are built-in objects that are explicitly referenced by the algorithms of

Loading…
Cancel
Save