Skip to content

Commit

Permalink
Fix yaml parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jedel1043 committed Feb 17, 2024
1 parent 4d7d049 commit df87c31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ repository.workspace = true
rust-version.workspace = true

[dependencies]
boa_engine.workspace = true
boa_engine = { workspace = true, features = ["annex-b"] }
boa_ast.workspace = true
boa_interner.workspace = true
boa_gc.workspace = true
Expand Down
8 changes: 4 additions & 4 deletions examples/src/bin/module_fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ impl ModuleLoader for HttpModuleLoader {
fn main() -> JsResult<()> {
// A simple snippet that imports modules from the web instead of the file system.
const SRC: &str = r#"
import YAML from 'https://esm.run/yaml@2.3.1';
import YAML from 'https://esm.run/yaml@2.3.4';
import fromAsync from 'https://esm.run/array-from-async@3.0.0';
import { Base64 } from 'https://esm.run/js-base64@3.7.5';
import { Base64 } from 'https://esm.run/js-base64@3.7.6';
const data = `
object:
Expand Down Expand Up @@ -151,8 +151,8 @@ fn main() -> JsResult<()> {

let default = module
.namespace(context)
.get(js_string!("default"), context)
.unwrap();
.get(js_string!("default"), context)?;

// `default` should contain the result of our calculations.
let default = default
.as_object()
Expand Down

0 comments on commit df87c31

Please sign in to comment.