mirror of https://github.com/boa-dev/boa.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
312 B
11 lines
312 B
5 years ago
|
extern crate boa;
|
||
|
use boa::js::string::_create;
|
||
|
use boa::js::object::PROTOTYPE;
|
||
|
use boa::js::value::{ValueData};
|
||
|
|
||
|
#[test]
|
||
|
fn check_string_constructor_is_function() {
|
||
|
let global = ValueData::new_obj(None);
|
||
|
let string_constructor = _create(global);
|
||
|
assert_eq!(string_constructor.is_function(), true);
|
||
|
}
|