|
|
|
@ -766,8 +766,11 @@ mod in_operator {
|
|
|
|
|
var bar = new Foo(); |
|
|
|
|
"#; |
|
|
|
|
forward(&mut engine, scenario); |
|
|
|
|
let a = forward_val(&mut engine, "bar").unwrap(); |
|
|
|
|
assert!(a.as_object().unwrap().prototype().is_object()); |
|
|
|
|
let bar_val = forward_val(&mut engine, "bar").unwrap(); |
|
|
|
|
let bar_obj = bar_val.as_object().unwrap(); |
|
|
|
|
let foo_val = forward_val(&mut engine, "Foo").unwrap(); |
|
|
|
|
let foo_obj = foo_val.as_object().unwrap(); |
|
|
|
|
assert!(bar_obj.prototype().strict_equals(&foo_obj.get_field("prototype").unwrap())); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|